From dc070a8306abade0d7efd8d4476eec21f973ff48 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Fri, 16 Nov 2018 14:18:36 +0800 Subject: [PATCH] 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. --- sys/msdk/gstmsdksystemmemory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/msdk/gstmsdksystemmemory.c b/sys/msdk/gstmsdksystemmemory.c index 54ee2ae..69d3662 100644 --- a/sys/msdk/gstmsdksystemmemory.c +++ b/sys/msdk/gstmsdksystemmemory.c @@ -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]; -- 2.7.4