Commit 8389e888 authored by Haihao Xiang's avatar Haihao Xiang Committed by Tim-Philipp Müller

msdk: return the right pointer for GST_VIDEO_FORMAT_VUYA frame

The first component for GST_VIDEO_FORMAT_VUYA in memory is V.
parent 24d12a4a
......@@ -235,7 +235,11 @@ gst_video_meta_map_msdk_memory (GstVideoMeta * meta, guint plane,
pitch = mem_id->pitch;
*data = mem->surface->Data.Y + offset;
/* The first channel in memory is V for GST_VIDEO_FORMAT_VUYA */
if (meta->format == GST_VIDEO_FORMAT_VUYA)
*data = mem->surface->Data.V + offset;
*data = mem->surface->Data.Y + offset;
*stride = pitch;
info->flags = flags;
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