aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2008-10-01 08:27:37 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-10-01 08:27:37 +0000
commit963203361c1beefeaec69fa29be90ebc942f4c78 (patch)
treecbd839a33176351f94c7cb151b79391da919adcd /libavcodec
parent9d2b5cf2e0add8f0af315c3d83851c4d8efe39d9 (diff)
downloadffmpeg-963203361c1beefeaec69fa29be90ebc942f4c78.tar.gz
Merge declaration and assignment.
Originally committed as revision 15494 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/indeo3.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 5f49290864..8be9696326 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -98,19 +98,15 @@ static av_cold int build_modpred(Indeo3DecodeContext *s)
static av_cold int iv_alloc_frames(Indeo3DecodeContext *s)
{
- int luma_width, luma_height, luma_pixels, chroma_width, chroma_height,
- chroma_pixels, i;
- unsigned int bufsize;
-
- luma_width = (s->width + 3) & (~3);
- luma_height = (s->height + 3) & (~3);
- 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;
-
- bufsize = luma_pixels * 2 + luma_width * 3 +
- (chroma_pixels + chroma_width) * 4;
+ int luma_width = (s->width + 3) & ~3,
+ luma_height = (s->height + 3) & ~3,
+ 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,
+ i;
+ unsigned int bufsize = luma_pixels * 2 + luma_width * 3 +
+ (chroma_pixels + chroma_width) * 4;
if(!(s->buf = av_malloc(bufsize)))
return AVERROR(ENOMEM);