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

Uoti Urpala uoti.urpala
Sun Feb 17 03:05:28 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()

> +            picture.linesize[0] = ALIGN(picture.linesize[0], picture.linesize[1]);

Wrong. ALIGN is defined as:
#define ALIGN(x, a) (((x)+(a)-1)&~((a)-1))
That only works for powers of 2. linesize typically isn't a power of 2.





More information about the ffmpeg-cvslog mailing list