mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
msdk: make sure the surface data is set for GST_VIDEO_FORMAT_P010_10LE
P010_10LE and NV12 have the same layout, so we may reuse the code.
This commit is contained in:
parent
54451b7303
commit
dc070a8306
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ ensure_data (GstMsdkSystemMemory * mem)
|
|||
|
||||
switch (GST_VIDEO_INFO_FORMAT (info)) {
|
||||
case GST_VIDEO_FORMAT_NV12:
|
||||
case GST_VIDEO_FORMAT_P010_10LE:
|
||||
mem->surface->Data.Y = mem->cached_data[0];
|
||||
mem->surface->Data.UV = mem->cached_data[1];
|
||||
mem->surface->Data.Pitch = mem->destination_pitches[0];
|
||||
|
|
Loading…
Reference in a new issue