Skip to content

Commit

Permalink
ffmpeg_opt: Fix sync_ist
Browse files Browse the repository at this point in the history
This code was lost in 2663540

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Jun 26, 2015
1 parent f5822ea commit 29cc0a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ffmpeg_opt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2027,6 +2027,7 @@ static int open_output_file(OptionsContext *o, const char *filename)
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;
Expand All @@ -2050,6 +2051,9 @@ static int open_output_file(OptionsContext *o, const char *filename)
exit_program(1);
}
}
if (ost)
ost->sync_ist = input_streams[ input_files[map->sync_file_index]->ist_index
+ map->sync_stream_index];
}
}
}
Expand Down

0 comments on commit 29cc0a1

Please sign in to comment.