From 3e175a2a550f5c2f788e8cd969052e10a5025a27 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 14 Mar 2013 09:44:07 +0100 Subject: [PATCH] avconv: mark attachment streams as immediately finished There are never any packets for those streams. Fixes an infinite loop with -attach. --- avconv_opt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/avconv_opt.c b/avconv_opt.c index 30fbadf07a..2c43da2bbd 100644 --- a/avconv_opt.c +++ b/avconv_opt.c @@ -1096,6 +1096,7 @@ static OutputStream *new_attachment_stream(OptionsContext *o, AVFormatContext *o { OutputStream *ost = new_output_stream(o, oc, AVMEDIA_TYPE_ATTACHMENT); ost->stream_copy = 1; + ost->finished = 1; return ost; }