msdk: return the right pointer for GST_VIDEO_FORMAT_VUYA frame
The first component for GST_VIDEO_FORMAT_VUYA in memory is V.
This commit is contained in:
parent
24d12a4abf
commit
8389e88840
@ -235,7 +235,11 @@ gst_video_meta_map_msdk_memory (GstVideoMeta * meta, guint plane,
|
|||||||
pitch = mem_id->pitch;
|
pitch = mem_id->pitch;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
*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;
|
||||||
|
else
|
||||||
|
*data = mem->surface->Data.Y + offset;
|
||||||
*stride = pitch;
|
*stride = pitch;
|
||||||
|
|
||||||
info->flags = flags;
|
info->flags = flags;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user