aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-07 23:28:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-07 23:52:39 +0200
commitbc0cbaca62b6d74e88a637eedc0cbed80721a0c7 (patch)
treefdbeba21c3643aeaa8d5ffac27c4a79335f00aaf /ffmpeg_opt.c
parenta527e692592b7eef69430cc866bb96231526316c (diff)
parent4582e4c086bc36e20e3c0b85c8108cfa352e0d88 (diff)
downloadffmpeg-bc0cbaca62b6d74e88a637eedc0cbed80721a0c7.tar.gz
Merge remote-tracking branch 'cigaes/master'
* cigaes/master: lavfi: add comments to explain the negotiation loop. lavfi: fix filter format negotiation loop. ffmpeg: move a local variable definition later. Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r--ffmpeg_opt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index ff80c8ab44..c87bf01100 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -1719,7 +1719,6 @@ static int open_output_file(OptionsContext *o, const char *filename)
} else {
for (i = 0; i < o->nb_stream_maps; i++) {
StreamMap *map = &o->stream_maps[i];
- int src_idx = input_files[map->file_index]->ist_index + map->stream_index;
if (map->disabled)
continue;
@@ -1747,6 +1746,8 @@ loop_end:
}
init_output_filter(ofilter, o, oc);
} else {
+ int src_idx = input_files[map->file_index]->ist_index + map->stream_index;
+
ist = input_streams[input_files[map->file_index]->ist_index + map->stream_index];
if(o->subtitle_disable && ist->st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE)
continue;