X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tests%2Fcheckasm%2Fh264dsp.c;h=945423703f91a75cb35fb1f53dd94258f69ce241;hb=da97b244b04b48b827ece6d9635a1d1d1cf2021a;hp=2c2603b2cabb7695c5a237fbcf1a3e307ab2ccf0;hpb=f761d4967053352f9b95ac2bc2505ea06d25a2a0;p=ffmpeg diff --git a/tests/checkasm/h264dsp.c b/tests/checkasm/h264dsp.c index 2c2603b2cab..945423703f9 100644 --- a/tests/checkasm/h264dsp.c +++ b/tests/checkasm/h264dsp.c @@ -34,6 +34,7 @@ static const uint32_t pixel_mask[3] = { 0xffffffff, 0x01ff01ff, 0x03ff03ff }; #define randomize_buffers() \ do { \ + int x, y; \ uint32_t mask = pixel_mask[bit_depth - 8]; \ for (y = 0; y < sz; y++) { \ for (x = 0; x < PIXEL_STRIDE; x += 4) { \ @@ -178,8 +179,7 @@ static void check_idct(void) LOCAL_ALIGNED_16(int16_t, subcoef0, [8 * 8 * 2]); LOCAL_ALIGNED_16(int16_t, subcoef1, [8 * 8 * 2]); H264DSPContext h; - int bit_depth, sz, align; - int x, y, dc; + int bit_depth, sz, align, dc; declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *dst, int16_t *block, int stride); for (bit_depth = 8; bit_depth <= 10; bit_depth++) {