[FFmpeg-cvslog] r11962 - trunk/libavcodec/utils.c

Uoti Urpala uoti.urpala
Sun Feb 17 04:06:27 CET 2008


On Fri, 2008-02-15 at 21:23 +0100, vitor wrote:
> Author: vitor
> Date: Fri Feb 15 21:23:49 2008
> New Revision: 11962
> 
> Log:
> Simplify avcodec_default_get_buffer()


> +        tmpsize = ff_fill_pointer(&picture, NULL, s->pix_fmt, h);
> +
> +        for (i=0; i<3 && picture.data[i+1]; i++)
> +            size[i] = picture.data[i+1] - picture.data[i];
> +        size[i] = tmpsize - size[i];

And another bug in this commit: since size[i] wasn't set yet, the last
line sets size[i] equal to the size of ALL the planes. This should
probably be something like
        size[i] = tmpsize - (picture.data[i] - picture.data[0]);





More information about the ffmpeg-cvslog mailing list