mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue