mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/h264pred_template: fix declarations after statements
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6f7ca1f55b
commit
05d7059ac6
|
@ -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,
|
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;
|
int i;
|
||||||
pixel *src = (pixel*)_src;
|
pixel *src = (pixel*)_src;
|
||||||
const dctcoef *block = (const dctcoef*)_block;
|
const dctcoef *block = (const dctcoef*)_block;
|
||||||
pixel pix[8];
|
pixel pix[8];
|
||||||
|
int stride = _stride>>(sizeof(pixel)-1);
|
||||||
stride >>= sizeof(pixel)-1;
|
|
||||||
|
|
||||||
PREDICT_8x8_LOAD_TOP;
|
PREDICT_8x8_LOAD_TOP;
|
||||||
|
|
||||||
pix[0] = t0;
|
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,
|
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;
|
int i;
|
||||||
pixel *src = (pixel*)_src;
|
pixel *src = (pixel*)_src;
|
||||||
const dctcoef *block = (const dctcoef*)_block;
|
const dctcoef *block = (const dctcoef*)_block;
|
||||||
pixel pix[8];
|
pixel pix[8];
|
||||||
|
int stride = _stride>>(sizeof(pixel)-1);
|
||||||
stride >>= sizeof(pixel)-1;
|
|
||||||
|
|
||||||
PREDICT_8x8_LOAD_LEFT;
|
PREDICT_8x8_LOAD_LEFT;
|
||||||
|
|
||||||
pix[0] = l0;
|
pix[0] = l0;
|
||||||
|
|
Loading…
Reference in New Issue