MLK-19550 [8mq] Certain HDR 10 stream when played on 8M EVK doesn't play correctly
Add hdr10 meta in gstvpudecobject.c and transfer these parameters to waylandsink.
Signed-off-by: Hou Qi <qi.hou@nxp.com>
diff --git a/plugins/vpu/gstvpudecobject.c b/plugins/vpu/gstvpudecobject.c
index 16dba41..8d9085a 100644
--- a/plugins/vpu/gstvpudecobject.c
+++ b/plugins/vpu/gstvpudecobject.c
@@ -1098,7 +1098,7 @@
pmeta->rfc_chroma_offset = out_frame_info.pExtInfo->rfc_chroma_offset;
}
- if (vpu_dec_object->init_info.hasHdr10Meta) {
+ if (vpu_dec_object->init_info.hasHdr10Meta || vpu_dec_object->init_info.hasColorDesc) {
GstVideoHdr10Meta *meta = gst_buffer_add_video_hdr10_meta (out_frame->output_buffer);
meta->hdr10meta.redPrimary[0] = vpu_dec_object->init_info.Hdr10Meta.redPrimary[0];
meta->hdr10meta.redPrimary[1] = vpu_dec_object->init_info.Hdr10Meta.redPrimary[1];