From 69a1667b064b11a2df4b4bdc136955f76d17f558 Mon Sep 17 00:00:00 2001
From: Nicolas George <nicolas.george@normalesup.org>
Date: Tue, 1 Jan 2013 01:23:19 +0100
Subject: [PATCH] ffmpeg: mark attachment streams finished.

Fix trac ticket #2083.
---
 ffmpeg_opt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index cd65065b0bb..e55a33a19d0 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -1654,6 +1654,7 @@ loop_end:
         ost = new_attachment_stream(o, oc, -1);
         ost->stream_copy               = 0;
         ost->attachment_filename       = o->attachments[i];
+        ost->finished                  = 1;
         ost->st->codec->extradata      = attachment;
         ost->st->codec->extradata_size = len;
 
-- 
GitLab