summaryrefslogtreecommitdiff
path: root/libavcodec/h264pred_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-18 20:47:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-18 20:53:37 +0100
commit05d7059ac6b640796001bf347d309a40a4fd4a12 (patch)
tree5ac214b6bf96033399434cf69a3d86d2afa2e9b8 /libavcodec/h264pred_template.c
parent6f7ca1f55be1270e0d7c33409de4473e4dd00add (diff)
avcodec/h264pred_template: fix declarations after statements
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264pred_template.c')
-rw-r--r--libavcodec/h264pred_template.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libavcodec/h264pred_template.c b/libavcodec/h264pred_template.c
index 3d67dd40ae..f684433abe 100644
--- a/libavcodec/h264pred_template.c
+++ b/libavcodec/h264pred_template.c
@@ -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;