[Ffmpeg-devel] Re: Re: Odd AVFrame.linesize Values when Decoding MPEG2

Rich Felker dalias
Fri Oct 7 04:47:10 CEST 2005


On Fri, Oct 07, 2005 at 08:36:00AM +0800, QuickTime wrote:
> Dear:
> 
> > Rich Felker wrote:
> >
> > > If you enable edge emulation (which also makes decoding faster) then
> > > linesize will be equal to width as long as width is a multiple of 16,
> > > but you should not rely on this to be the case.
> >
> > CODEC_FLAG_EMU_EDGE solved the problem. It's not something I would have
> > found anywhere. Thanks for the tip.
> >
> > Paul
> >
> Well, Never rely on the CODEC_FLAG_EMU_EDGE Flag, It's will put an
> overwhelming impact on the whole performance!!!

Huh?? EMU_EDGE is significantly _faster_, not slower.
However I agree you should never assume linesize==width.

Rich





More information about the ffmpeg-devel mailing list