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

Måns Rullgård mans
Thu May 13 15:58:05 CEST 2010


"Ronald S. Bultje" <rsbultje at gmail.com> writes:

> 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?

Width != linesize.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list