[FFmpeg-devel] [PATCH] mxf aspect ratio
Aurelien Jacobs
aurel
Tue Aug 26 22:20:10 CEST 2008
Baptiste Coudurier wrote:
> 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.
applied
Aurel
More information about the ffmpeg-devel
mailing list