[FFmpeg-devel] [PATCH] IFF: Make lavf/iff.c stop using ff_cmap_read_palette

Michael Niedermayer michaelni
Thu May 13 17:59:58 CEST 2010


On Thu, May 13, 2010 at 10:14:27AM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> On Thu, May 13, 2010 at 9:57 AM, Sebastian Vater
> <cdgs.basty at googlemail.com> wrote:
> > Ronald S. Bultje a ?crit :
> >>> + ? ? ? ? ? ?memcpy(row, buf, FFMIN(avctx->width, buf_end - buf));
> >>> + ? ? ? ? ? ?buf += avctx->width;
> >>
> >> You can just memcpy the whole image at once instead of per-line, no?
> >
> > They have different width alignment, if I do one memcpy, the image is
> > totally distorted.
> 
> Right... Do we have a generic function for this? Otherwise patch OK,
> will apply if nobody complains.

av_picture_copy() maybe


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

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100513/232fb1d9/attachment.pgp>



More information about the ffmpeg-devel mailing list