]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Merge declaration and assignment.
authorbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 1 Oct 2008 08:27:37 +0000 (08:27 +0000)
committerbenoit <benoit@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 1 Oct 2008 08:27:37 +0000 (08:27 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15494 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/indeo3.c

index 5f492908645240559c92f797a11fface5109ea50..8be9696326351fca0a80b593be5b12162911dcaa 100644 (file)
@@ -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);