Commit dc070a83 authored by Haihao Xiang's avatar Haihao Xiang Committed by Víctor Manuel Jáquez Leal
Browse files

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.
parent 54451b73
......@@ -78,6 +78,7 @@ ensure_data (GstMsdkSystemMemory * mem)
switch (GST_VIDEO_INFO_FORMAT (info)) {
mem->surface->Data.Y = mem->cached_data[0];
mem->surface->Data.UV = mem->cached_data[1];
mem->surface->Data.Pitch = mem->destination_pitches[0];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment