ffmpeg: fix order between field order autodetection and override
authorJan Ekström <jeebjp@gmail.com>
Mon, 19 Jul 2021 20:25:28 +0000 (23:25 +0300)
committerJan Ekström <jeebjp@gmail.com>
Sun, 25 Jul 2021 19:40:49 +0000 (22:40 +0300)
commit4c694093be68d401c60819e5171817c62afef8b2
tree2967ad74a3bca7d6150b0c8c7214e7091d1af7b3
parenta1f7d25ceff2fd52c56148fe1b4fa21e6ef2acd6
ffmpeg: fix order between field order autodetection and override

Having the override before autodetection meant that the overridden
value got overwritten by the autodetected result each time,
effectively disabling the ability to utilize the `-top` option
for override purposes.

Somehow I missed this in fbb44bc51a647862eb05ae3f9d7d49a0be9bed57 ,
even though the lines were within the context. Probably the code
originally being after this logic had something to do with it,
but previously it only touched the avformat context's codecpar,
which did not affect the encoder codec context whatsoever.

Fixes #9320
Fixes #9339
fftools/ffmpeg.c