[FFmpeg-devel] [PATCH] IFF: Make lavf/iff.c stop using ff_cmap_read_palette
Ronald S. Bultje
rsbultje
Thu May 13 15:43:06 CEST 2010
Hi,
On Mon, May 10, 2010 at 3:34 PM, Sebastian Vater
<cdgs.basty at googlemail.com> wrote:
> Anyway, I have to update these patches, before the old ones don't apply
> anymore to current git/svn.
[..]
> + uint8_t *row = &s->frame.data[0][ y*s->frame.linesize[0] ];
[ . ] spaces.
> + for(y = 0; y < avctx->height; y++ ) {
[..]
> + 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?
Ronald
More information about the ffmpeg-devel
mailing list