X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg_opt.c;h=f7f65535d2021407caf3ae525aa42376502f5256;hb=16dd0426e5681ff4ad0752f7fd1d27611e0cb05a;hp=a74640560bb2c1e863071399b91d23e4d4758781;hpb=ff68b83968cba999a15b7c981c1bbcc2d608cad2;p=ffmpeg diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index a74640560bb..f7f65535d20 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -2027,6 +2027,7 @@ loop_end: if(o-> data_disable && ist->st->codec->codec_type == AVMEDIA_TYPE_DATA) continue; + ost = NULL; switch (ist->st->codec->codec_type) { case AVMEDIA_TYPE_VIDEO: ost = new_video_stream (o, oc, src_idx); break; case AVMEDIA_TYPE_AUDIO: ost = new_audio_stream (o, oc, src_idx); break; @@ -2050,6 +2051,9 @@ loop_end: exit_program(1); } } + if (ost) + ost->sync_ist = input_streams[ input_files[map->sync_file_index]->ist_index + + map->sync_stream_index]; } } }