FS-10050: [core] chromakey
This commit is contained in:
parent
dbbe00332b
commit
a9e40500e7
|
@ -183,14 +183,14 @@ static void parse_params(chromakey_context_t *context, int start, int argc, char
|
||||||
while (n > 3 && argv[i]) {
|
while (n > 3 && argv[i]) {
|
||||||
if (!strncasecmp(argv[i], "fg:", 3)) {
|
if (!strncasecmp(argv[i], "fg:", 3)) {
|
||||||
switch_img_free(&context->imgfg);
|
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);
|
context->imgfg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strncasecmp(argv[i], "bg:", 3)) {
|
if (!strncasecmp(argv[i], "bg:", 3)) {
|
||||||
switch_img_free(&context->imgbg);
|
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);
|
context->imgbg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue