[FFmpeg-devel] [PATCH 4/5] ffmpeg: copy the attached_pic from input to output streams
Peter Ross
pross at xvid.org
Thu Jan 3 15:54:48 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;
> }
>
> if (ost->stream_copy) {
> --
> 1.8.0
>
> -- Peter
> (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
Ping.
(Use case: the wtv muxer needs to access attached_pic in write_trailer.)
-- 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/20130104/ec071f93/attachment.asc>
More information about the ffmpeg-devel
mailing list