aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-15 08:54:27 +0100
committerAnton Khirnov <anton@khirnov.net>2013-03-15 08:58:11 +0100
commit0076639965a0970512296342d1f6c38ce990661e (patch)
treeff75f88381106d261d33765b8bf8e13dd93546fe /avconv.c
parentd8fbae3c3c63505774288abe7a98404a507b60e3 (diff)
downloadffmpeg-0076639965a0970512296342d1f6c38ce990661e.tar.gz
avconv: skip attached files when selecting streams to read from.
Fixes Bug 473 / invalid reads when using -attach.
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/avconv.c b/avconv.c
index df86b2b227..90b72fda11 100644
--- a/avconv.c
+++ b/avconv.c
@@ -2704,6 +2704,8 @@ static int transcode(OutputFile *output_files,
double opts;
ost = &output_streams[i];
of = &output_files[ost->file_index];
+ if (ost->source_index < 0)
+ continue;
os = output_files[ost->file_index].ctx;
ist = &input_streams[ost->source_index];
if (ost->is_past_recording_time || no_packet[ist->file_index] ||