msdk: VA_FOURCC_P010 frame lock

P010 and NV12 have the same layout, so we may reuse the code in
gst_msdk_frame_lock()
This commit is contained in:
Xiang, Haihao 2018-11-16 14:32:29 +08:00 committed by Víctor Manuel Jáquez Leal
parent f72c825194
commit 7d58424611

View file

@ -267,6 +267,7 @@ gst_msdk_frame_lock (mfxHDL pthis, mfxMemId mid, mfxFrameData * data)
switch (mem_id->image.format.fourcc) {
case VA_FOURCC_NV12:
case VA_FOURCC_P010:
data->Pitch = mem_id->image.pitches[0];
data->Y = buf + mem_id->image.offsets[0];
data->UV = buf + mem_id->image.offsets[1];