mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
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:
parent
3da5c60aa9
commit
95af0bcc34
3 changed files with 24 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue