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

Michael Niedermayer michaelni at gmx.at
Thu Jan 3 18:49:39 CET 2013


On Sun, Dec 30, 2012 at 11:39:03PM +1100, Peter Ross wrote:
> ---
> 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;
>          }

this should not be needed, other muxers like mp3/id3 work
fine without it as well (at least they should, i did not try now)

[...]


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- 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/20130103/33062eaa/attachment.asc>


More information about the ffmpeg-devel mailing list