From: Anthony Minessale Date: Tue, 28 Feb 2017 22:25:48 +0000 (-0600) Subject: FS-10050 X-Git-Tag: v1.8.0~807 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0993835db2e5f2ebe670aeb1efe8bfc4cf79c1e9;p=thirdparty%2Ffreeswitch.git FS-10050 --- 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 6fa05b17cc..fdfc1088e0 100644 --- a/src/mod/applications/mod_video_filter/mod_video_filter.c +++ b/src/mod/applications/mod_video_filter/mod_video_filter.c @@ -179,12 +179,16 @@ 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); - context->imgfg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB); + if (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); - context->imgbg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB); + if (argv[i]+3) { + context->imgbg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB); + } } if (!strcasecmp(argv[i], "patch")) {