]> git.sesse.net Git - ffmpeg/commitdiff
tests: fix warning ISO C90 forbids mixed declarations and code
authorLimin Wang <lance.lmwang@gmail.com>
Wed, 26 Aug 2020 06:28:46 +0000 (14:28 +0800)
committerLimin Wang <lance.lmwang@gmail.com>
Thu, 10 Sep 2020 12:34:51 +0000 (20:34 +0800)
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
tests/checkasm/vf_hflip.c

index 48ebf85fdbb04d3bdc7dbc7763d22e4fa653f7bd..2d6fdeca7b39f1db189ccee4d1d40731b75a5275 100644 (file)
@@ -40,10 +40,10 @@ static void check_hflip(int step, const char * report_name){
     int i;
     int step_array[4] = {1, 1, 1, 1};
     FlipContext s;
-    s.bayer_plus1 = 1;
 
     declare_func(void, const uint8_t *src, uint8_t *dst, int w);
 
+    s.bayer_plus1 = 1;
     memset(src,     0, WIDTH_PADDED);
     memset(dst_ref, 0, WIDTH_PADDED);
     memset(dst_new, 0, WIDTH_PADDED);