[FFmpeg-devel] [PATCH] IFF: Make lavf/iff.c stop using ff_cmap_read_palette
Ronald S. Bultje
rsbultje
Thu May 13 16:14:27 CEST 2010
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.
Ronald
More information about the ffmpeg-devel
mailing list