[FFmpeg-devel] [PATCH] mxf aspect ratio
Baptiste Coudurier
baptiste.coudurier
Tue Aug 26 20:58:56 CEST 2008
Hi Aurelien,
Aurelien Jacobs wrote:
> Hi,
>
> It seems that the mxf demuxer currently read the aspect_ratio information,
> but don't use it for anything. I suspect that the attached patch would be
> appropriate, but I don't know anything about mxf, and have not tested it.
>
> Aurel
>
>
> ------------------------------------------------------------------------
>
> Index: libavformat/mxfdec.c
> ===================================================================
> --- libavformat/mxfdec.c (revision 14931)
> +++ libavformat/mxfdec.c (working copy)
> @@ -778,6 +778,7 @@
> st->codec->width = descriptor->width;
> st->codec->height = descriptor->height;
> st->codec->bits_per_sample = descriptor->bits_per_sample; /* Uncompressed */
> + st->sample_aspect_ratio = descriptor->aspect_ratio;
> st->need_parsing = AVSTREAM_PARSE_HEADERS;
> } else if (st->codec->codec_type == CODEC_TYPE_AUDIO) {
> container_ul = mxf_get_codec_ul(ff_mxf_essence_container_uls, essence_container_ul);
>
Ok.
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Smartjog USA Inc. http://www.smartjog.com
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
More information about the ffmpeg-devel
mailing list