libs: dec: h265: Consider chroma_bit_depth to choose chrome type
authorHe Junyan <junyan.he@hotmail.com>
Tue, 25 Jun 2019 11:11:12 +0000 (19:11 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 28 Jun 2019 14:49:51 +0000 (16:49 +0200)
commit9b0f041dedc389765215cb7ae9f9eb7458708cb8
tree665133449efb5aaf56f55463a390c74b68f9f4d7
parente4bec306b6b5695f1a12bafdb79508011488e693
libs: dec: h265: Consider chroma_bit_depth to choose chrome type

For some main-10 stream, sometime the luma is 8 bits while chrome is more
than 8 bits, which cause using the wrong NV12 surface as the render target
and decoding error.

Fix #176
gst-libs/gst/vaapi/gstvaapidecoder_h265.c
gst-libs/gst/vaapi/gstvaapiutils_h265.c
gst-libs/gst/vaapi/gstvaapiutils_h265_priv.h