avconv: mark attachment streams as immediately finished
authorAnton Khirnov <anton@khirnov.net>
Thu, 14 Mar 2013 08:44:07 +0000 (09:44 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 15 Mar 2013 07:59:27 +0000 (08:59 +0100)
There are never any packets for those streams.
Fixes an infinite loop with -attach.

avconv_opt.c

index 30fbadf..2c43da2 100644 (file)
@@ -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;
 }