mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +00:00
FS-7500: refactor to support Alpha channel on core image, only ARGB & I420 are supported
This commit is contained in:
1 parent
8f361ab00b
commit
0ddfea1d1b
6 files changed
+162
-87
No files matched your search
@@ -74,7 +74,7 @@ static switch_status_t png_file_open(switch_file_handle_t *handle, const char *p
|
||||
|
||||
memset(context, 0, sizeof(png_file_context_t));
|
||||
|
||||
if (!(context->img = switch_img_read_png(path))) {
|
||||
if (!(context->img = switch_img_read_png(path, SWITCH_IMG_FMT_I420))) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Opening %s\n", path);
|
||||
return SWITCH_STATUS_GENERR;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user