]> git.sesse.net Git - ffmpeg/commit
ffmpeg: move field order decision making to encoder initialization
authorJan Ekström <jeebjp@gmail.com>
Sun, 20 Sep 2020 18:00:52 +0000 (21:00 +0300)
committerJan Ekström <jeebjp@gmail.com>
Thu, 29 Oct 2020 14:59:49 +0000 (16:59 +0200)
commitfbb44bc51a647862eb05ae3f9d7d49a0be9bed57
treea97b63ae874101d625d15402d35cfca31dfd9adc
parent7369595c556516b90bf3acdf85043dc11add7d89
ffmpeg: move field order decision making to encoder initialization

We now have the possibility of getting AVFrames here, and we should
not touch the muxer's codecpar after writing the header.

Results of FATE tests change as the MXF and Matroska muxers actually
write down the field/frame coding type of a stream in their
respective headers. Before this change, these values in codecpar
would only be set after the muxer was initialized. Now, the
information is also available for encoder and muxer initialization.
fftools/ffmpeg.c
tests/ref/fate/concat-demuxer-extended-lavf-mxf_d10
tests/ref/fate/concat-demuxer-simple1-lavf-mxf_d10
tests/ref/fate/rgb24-mkv
tests/ref/lavf/mxf_d10