Commit 1ec231b8 authored by Haihao Xiang's avatar Haihao Xiang

msdk: return a right pointer for VUYA format

The first channel in memory is V for VUYA format, note
GST_VIDEO_FORMAT_VUYA is mapped to MFX_FOURCC_AYUV in this plugin
parent bc0c99a3
Pipeline #39656 passed with stages
in 51 minutes and 17 seconds
......@@ -217,7 +217,11 @@ gst_msdk_system_memory_map_full (GstMemory * base_mem, GstMapInfo * info,
return NULL;
return mem->surface->Data.Y;
/* The first channel in memory is V for MFX_FOURCC_AYUV (GST_VIDEO_FORMAT_VUYA) format */
if (mem->surface->Info.FourCC == MFX_FOURCC_AYUV)
return mem->surface->Data.V;
return mem->surface->Data.Y;
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment