Skip to content

Commit 02064ba

Browse files
committed
fftools/ffmpeg_mux_init: Restrict disabling automatic copying of metadata
Fixes ticket #10638 (and should also fix ticket #10482) by restoring the behaviour from before 3c7dd5e. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
1 parent 4dbfb52 commit 02064ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fftools/ffmpeg_mux_init.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,11 +2182,11 @@ static int copy_metadata(Muxer *mux, AVFormatContext *ic,
21822182
if (ret < 0)
21832183
return ret;
21842184

2185-
if (type_in == 'g' || type_out == 'g' || !*outspec)
2185+
if (type_in == 'g' || type_out == 'g' || (!*outspec && !ic))
21862186
*metadata_global_manual = 1;
2187-
if (type_in == 's' || type_out == 's' || !*outspec)
2187+
if (type_in == 's' || type_out == 's' || (!*outspec && !ic))
21882188
*metadata_streams_manual = 1;
2189-
if (type_in == 'c' || type_out == 'c' || !*outspec)
2189+
if (type_in == 'c' || type_out == 'c' || (!*outspec && !ic))
21902190
*metadata_chapters_manual = 1;
21912191

21922192
/* ic is NULL when just disabling automatic mappings */

0 commit comments

Comments
 (0)