[FFmpeg-cvslog] avconv: skip attached files when selecting streams to read from.
Anton Khirnov
git at videolan.org
Sun Apr 7 15:54:19 CEST 2013
ffmpeg | branch: release/0.10 | Anton Khirnov <anton at khirnov.net> | Fri Mar 15 08:54:27 2013 +0100| [0076639965a0970512296342d1f6c38ce990661e] | committer: Anton Khirnov
avconv: skip attached files when selecting streams to read from.
Fixes Bug 473 / invalid reads when using -attach.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0076639965a0970512296342d1f6c38ce990661e
---
avconv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/avconv.c b/avconv.c
index df86b2b..90b72fd 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] ||
More information about the ffmpeg-cvslog
mailing list