ffmpeg/fftools
Anton Khirnov bd55552d69 ffmpeg: rewrite setting the stream disposition
Currently, the code doing this is spread over several places and may
behave in unexpected ways. E.g. automatic 'default' marking is only done
for streams fed by complex filtergraphs. It is also applied in the order
in which the output streams are initialized, which is effectively
random.

Move processing the dispositions at the end of open_output_file(), when
we already have all the necessary information.

Apply the automatic default marking only if no explicit -disposition
options were supplied by the user, and apply it to the first stream of
each type (excluding attached pics) when there is more than one stream
of that type and no default markings were copied from the input streams.

Explicitly document the new behavior.

Changes the results of some tests, where the output file gets a default
disposition, while it previously did not.
2021-11-16 10:51:32 +01:00
..
Makefile qsvdec: add support for HW_DEVICE_CTX method 2021-08-11 13:45:36 -03:00
cmdutils.c cmdutils: add an option for listing stream dispositions 2021-11-16 10:51:32 +01:00
cmdutils.h cmdutils: add an option for listing stream dispositions 2021-11-16 10:51:32 +01:00
ffmpeg.c ffmpeg: rewrite setting the stream disposition 2021-11-16 10:51:32 +01:00
ffmpeg.h ffmpeg: use display matrix frame side data for autorotation 2021-09-16 12:46:07 -03:00
ffmpeg_filter.c ffmpeg_filter: don't try to autorotate frames with hwaccel pixel formats 2021-09-21 10:41:16 -03:00
ffmpeg_hw.c ffmpeg_hw: make hardware selection for filters more user friendly 2021-09-12 13:33:50 -03:00
ffmpeg_opt.c ffmpeg: rewrite setting the stream disposition 2021-11-16 10:51:32 +01:00
ffmpeg_videotoolbox.c
ffplay.c fftools/ffplay: don't disable x11 compositing 2021-10-29 12:17:41 +10:00
ffprobe.c Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00