From baaded87680b7ac0c43e4d7945da1d8a8f31fec0 Mon Sep 17 00:00:00 2001
From: michael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Date: Fri, 22 Feb 2008 19:27:22 +0000
Subject: [PATCH] Remove apparently unneeded and buggy align.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12179 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
---
 libavcodec/utils.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 1a32c2c48..c99a4d5cd 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -288,16 +288,9 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
 
         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++)
-- 
2.25.4