[FFmpeg-devel] [PATCH 4/5] ffmpeg: copy the attached_pic from input to output streams

Peter Ross pross at xvid.org
Sun Dec 30 13:39:03 CET 2012


---
This permits the 'attached_pic' field to be accessed by muxers.

 ffmpeg.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 977218f..1bfaa25 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2026,6 +2026,9 @@ static int transcode_init(void)
             ost->st->disposition          = ist->st->disposition;
             codec->bits_per_raw_sample    = icodec->bits_per_raw_sample;
             codec->chroma_sample_location = icodec->chroma_sample_location;
+
+            ost->st->attached_pic          = ist->st->attached_pic;
+            ost->st->attached_pic.destruct = NULL;
         }
 
         if (ost->stream_copy) {
-- 
1.8.0

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121230/abd8870c/attachment.asc>


More information about the ffmpeg-devel mailing list