From a9e40500e7d7e0f43f75eeeb6df8c6c13c06366e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 1 Mar 2017 21:39:05 -0600 Subject: [PATCH] FS-10050: [core] chromakey --- src/mod/applications/mod_video_filter/mod_video_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_video_filter/mod_video_filter.c b/src/mod/applications/mod_video_filter/mod_video_filter.c index 82ca612a20..e855bd1f79 100644 --- a/src/mod/applications/mod_video_filter/mod_video_filter.c +++ b/src/mod/applications/mod_video_filter/mod_video_filter.c @@ -183,14 +183,14 @@ static void parse_params(chromakey_context_t *context, int start, int argc, char while (n > 3 && argv[i]) { if (!strncasecmp(argv[i], "fg:", 3)) { switch_img_free(&context->imgfg); - if (argv[i]+3) { + if (!zstr(argv[i]+3)) { context->imgfg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB); } } if (!strncasecmp(argv[i], "bg:", 3)) { switch_img_free(&context->imgbg); - if (argv[i]+3) { + if (!zstr(argv[i]+3)) { context->imgbg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB); } }