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

michael subversion
Fri Feb 22 20:27:22 CET 2008


Author: michael
Date: Fri Feb 22 20:27:22 2008
New Revision: 12179

Log:
Remove apparently unneeded and buggy align.


Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Fri Feb 22 20:27:22 2008
@@ -288,16 +288,9 @@ int avcodec_default_get_buffer(AVCodecCo
 
         ff_fill_linesize(&picture, s->pix_fmt, w);
 
-        for (i=1; i<4; i++)
+        for (i=0; i<4; i++)
             picture.linesize[i] = ALIGN(picture.linesize[i], STRIDE_ALIGN);
 
-        /* next ensures that linesize= 2^x uvlinesize, that is needed because
-         * some MC code assumes it */
-        if (picture.linesize[1])
-            picture.linesize[0] = ALIGN(picture.linesize[0], picture.linesize[1]);
-        else
-            picture.linesize[0] = ALIGN(picture.linesize[0], STRIDE_ALIGN);
-
         tmpsize = ff_fill_pointer(&picture, NULL, s->pix_fmt, h);
 
         for (i=0; i<3 && picture.data[i+1]; i++)




More information about the ffmpeg-cvslog mailing list