[FFmpeg-cvslog] Fix buffering in qpeg in a way that allows direct rendering.

Michael Niedermayer michaelni at gmx.at
Fri Apr 29 04:47:42 CEST 2011


On Thu, Apr 28, 2011 at 07:32:15PM +0200, Reimar Döffinger wrote:
> On Thu, Apr 28, 2011 at 02:33:28PM +0200, Michael Niedermayer wrote:
> >      /* copy prev frame */
> >      for(i = 0; i < height; i++)
> > -        memcpy(refdata + (i * width), dst + (i * stride), width);
> > +        memcpy(dst + (i * stride), refdata + (i * stride), width);
> 
> I guess rather pedantic, but doesn't this assume that the strides
> are identical?

we assume this in other codecs too

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- 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-cvslog/attachments/20110429/a8c71595/attachment.asc>


More information about the ffmpeg-cvslog mailing list