aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-09-25 12:19:26 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-09-25 12:19:26 +0000
commit2ecad8bd45b50020f9de4baf841778fba48863cf (patch)
tree528db0e797ec752f508d86e7ce17e2d4f87cb331
parenta63d49334e02917d9a29365535056ca54e30b55d (diff)
downloadffmpeg-2ecad8bd45b50020f9de4baf841778fba48863cf.tar.gz
fixes levis.avi
dunno if this is correct ... Originally committed as revision 2302 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/indeo3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index fb1c2300b7..d377eb9936 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -103,8 +103,8 @@ static void iv_alloc_frames(Indeo3DecodeContext *s)
int luma_width, luma_height, luma_pixels, chroma_width, chroma_height,
chroma_pixels, bufsize, i;
- luma_width = (s->width + 15) & -0x10;
- luma_height = (s->height + 15) & -0x10;
+ luma_width = (s->width + 3) & (~3);
+ luma_height = (s->height + 3) & (~3);
s->iv_frame[0].y_w = s->iv_frame[0].y_h =
s->iv_frame[0].the_buf_size = 0;
@@ -112,8 +112,8 @@ static void iv_alloc_frames(Indeo3DecodeContext *s)
s->iv_frame[1].the_buf_size = 0;
s->iv_frame[1].the_buf = NULL;
- chroma_width = luma_width >> 2;
- chroma_height = luma_height >> 2;
+ chroma_width = ((luma_width >> 2) + 3) & (~3);
+ chroma_height = ((luma_height>> 2) + 3) & (~3);
luma_pixels = luma_width * luma_height;
chroma_pixels = chroma_width * chroma_height;