diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-11-17 10:45:06 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-11-23 10:36:23 +0100 |
commit | 95af0bcc344e2f3742494c76b7f6bcfee909a8ef (patch) | |
tree | 6437a994b9f988d154b1504d21fac202ee6f98b3 /fftools/ffmpeg_mux.c | |
parent | 3da5c60aa9b1853119121cf52cb723fdb6b53fab (diff) | |
download | ffmpeg-95af0bcc344e2f3742494c76b7f6bcfee909a8ef.tar.gz |
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().
Diffstat (limited to 'fftools/ffmpeg_mux.c')
-rw-r--r-- | fftools/ffmpeg_mux.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c index ad04f5049d..2b885f7ab0 100644 --- a/fftools/ffmpeg_mux.c +++ b/fftools/ffmpeg_mux.c @@ -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); |