fftools/ffmpeg_mux_init: postpone matching -disposition to streams

Do it in set_dispositions() rather than during stream creation.

Since at this point all other stream information is known, this allows
setting disposition based on metadata, which implements #10015. This
also avoids an extra allocated string in OutputStream that was unused
after of_open().
This commit is contained in:
Anton Khirnov 2022-11-17 10:45:06 +01:00
parent 3da5c60aa9
commit 95af0bcc34
3 changed files with 24 additions and 14 deletions

View file

@ -673,7 +673,6 @@ static void ost_free(OutputStream **post)
av_freep(&ost->logfile_prefix);
av_freep(&ost->forced_kf_pts);
av_freep(&ost->apad);
av_freep(&ost->disposition);
#if FFMPEG_OPT_MAP_CHANNEL
av_freep(&ost->audio_channels_map);