projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46c02b1
)
Use FFALIGN
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 31 May 2009 09:28:29 +0000
(09:28 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 31 May 2009 09:28:29 +0000
(09:28 +0000)
Originally committed as revision 19039 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/lcldec.c
patch
|
blob
|
history
diff --git
a/libavcodec/lcldec.c
b/libavcodec/lcldec.c
index
c955ff6
..
d9738c7
100644
(file)
--- a/
libavcodec/lcldec.c
+++ b/
libavcodec/lcldec.c
@@
-461,7
+461,7
@@
static av_cold int decode_init(AVCodecContext *avctx)
{
LclDecContext * const c = avctx->priv_data;
unsigned int basesize = avctx->width * avctx->height;
- unsigned int max_basesize =
((avctx->width + 3) & ~3) * ((avctx->height + 3) & ~3
);
+ unsigned int max_basesize =
FFALIGN(avctx->width, 4) * FFALIGN(avctx->height, 4
);
unsigned int max_decomp_size;
c->pic.data[0] = NULL;