avcodec/h264pred_template: fix declarations after statements
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Mar 2014 19:47:04 +0000 (20:47 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Mar 2014 19:53:37 +0000 (20:53 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264pred_template.c

index 3d67dd4..f684433 100644 (file)
@@ -1126,15 +1126,13 @@ static void FUNCC(pred8x8l_horizontal_up)(uint8_t *_src, int has_topleft,
 }
 
 static void FUNCC(pred8x8l_vertical_filter_add)(uint8_t *_src, int16_t *_block, int has_topleft,
-                                     int has_topright, ptrdiff_t stride)
+                                     int has_topright, ptrdiff_t _stride)
 {
     int i;
     pixel *src = (pixel*)_src;
     const dctcoef *block = (const dctcoef*)_block;
     pixel pix[8];
-
-    stride >>= sizeof(pixel)-1;
-
+    int stride = _stride>>(sizeof(pixel)-1);
     PREDICT_8x8_LOAD_TOP;
 
     pix[0] = t0;
@@ -1164,15 +1162,13 @@ static void FUNCC(pred8x8l_vertical_filter_add)(uint8_t *_src, int16_t *_block,
 }
 
 static void FUNCC(pred8x8l_horizontal_filter_add)(uint8_t *_src, int16_t *_block, int has_topleft,
-                               int has_topright, ptrdiff_t stride)
+                               int has_topright, ptrdiff_t _stride)
 {
     int i;
     pixel *src = (pixel*)_src;
     const dctcoef *block = (const dctcoef*)_block;
     pixel pix[8];
-
-    stride >>= sizeof(pixel)-1;
-
+    int stride = _stride>>(sizeof(pixel)-1);
     PREDICT_8x8_LOAD_LEFT;
 
     pix[0] = l0;