FS-7500: refactor to support Alpha channel on core image, only ARGB & I420 are supported

This commit is contained in:
Seven Du authored and Michael Jerris committed 2015-05-28 12:47:20 -05:00
1 parent 8f361ab00b
commit 0ddfea1d1b
6 files changed
+162 -87

No files matched your search

+1 -1
View File
@@ -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;
}