hpeldsp_template: Merge some declarations and initializations
authorDiego Biurrun <diego@biurrun.de>
Fri, 10 Jan 2014 13:41:47 +0000 (14:41 +0100)
committerDiego Biurrun <diego@biurrun.de>
Thu, 20 Mar 2014 12:03:22 +0000 (05:03 -0700)
libavcodec/hpeldsp_template.c

index 76c3fd3..9456490 100644 (file)
@@ -133,14 +133,14 @@ static inline void FUNCC(OPNAME ## _pixels2_xy2)(uint8_t *_block,       \
                                                  ptrdiff_t line_size,   \
                                                  int h)                 \
 {                                                                       \
-    int i, a0, b0, a1, b1;                                              \
     pixel *block        = (pixel *) _block;                             \
     const pixel *pixels = (const pixel *) _pixels;                      \
-    a0  = pixels[0];                                                    \
-    b0  = pixels[1] + 2;                                                \
+    int i, a1, b1;                                                      \
+    int a0 = pixels[0];                                                 \
+    int b0 = pixels[1] + 2;                                             \
+                                                                        \
     a0 += b0;                                                           \
     b0 += pixels[2];                                                    \
-                                                                        \
     line_size /= sizeof(pixel);                                         \
     pixels += line_size;                                                \
     for (i = 0; i < h; i += 2) {                                        \