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

Sebastian Vater cdgs.basty
Thu May 13 15:57:42 CEST 2010


Ronald S. Bultje a ?crit :
> 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?
>   

They have different width alignment, if I do one memcpy, the image is
totally distorted.

-- 

Best regards,
                   :-) Basty/CDGS (-:




More information about the ffmpeg-devel mailing list