diff --git a/src/mod/applications/mod_av/test/test_avformat.c b/src/mod/applications/mod_av/test/test_avformat.c index b03cae80cc..de7150e3c9 100644 --- a/src/mod/applications/mod_av/test/test_avformat.c +++ b/src/mod/applications/mod_av/test/test_avformat.c @@ -53,6 +53,7 @@ FST_CORE_BEGIN("conf") uint32_t flags = SWITCH_FILE_FLAG_WRITE | SWITCH_FILE_DATA_SHORT | SWITCH_FILE_FLAG_VIDEO; int i = 0; switch_image_t *ccimg; + switch_rgb_color_t color = {0}; fst_requires(img); @@ -72,7 +73,6 @@ FST_CORE_BEGIN("conf") ccimg = switch_img_read_png("./cluecon.png", SWITCH_IMG_FMT_ARGB); fst_requires(ccimg); - switch_rgb_color_t color = {0}; color.a = 255; for (i = 0; i < 30; i++) { @@ -109,6 +109,8 @@ FST_CORE_BEGIN("conf") switch_size_t len = SAMPLES; uint32_t flags = SWITCH_FILE_FLAG_WRITE | SWITCH_FILE_DATA_SHORT | SWITCH_FILE_FLAG_VIDEO; int i = 0; + switch_rgb_color_t color = {0}; + switch_image_t *ccimg; fst_requires(img); @@ -125,10 +127,9 @@ FST_CORE_BEGIN("conf") status = switch_core_file_write_video(&fh, &frame); fst_check(status == SWITCH_STATUS_SUCCESS); - switch_image_t *ccimg = switch_img_read_png("./cluecon.png", SWITCH_IMG_FMT_ARGB); + ccimg = switch_img_read_png("./cluecon.png", SWITCH_IMG_FMT_ARGB); fst_requires(ccimg); - switch_rgb_color_t color = {0}; color.a = 255; for (i = 0; i < 30; i++) {