lib: decoder: vp9: Set chroma_type by VP9 bit_depth
authorHe Junyan <junyan.he@hotmail.com>
Mon, 15 Apr 2019 11:58:14 +0000 (19:58 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 3 May 2019 06:57:11 +0000 (06:57 +0000)
commit9c1f3ad172d0f02ff92e3301b83b01eb77d17882
tree7cfc51c4e7ca2587a8e12159d80c452d996c5c07
parent838045b9e2d3b14e4dc95270ba8e86025f5cf3f9
lib: decoder: vp9: Set chroma_type by VP9 bit_depth

The decoder's surface chroma type should depend on the bit depth
of VP9's parser. For 10bits VP9 stream, we need to use P10LE kind
10 bits surface as the decoder result.

Fixes #155
gst-libs/gst/vaapi/gstvaapidecoder_vp9.c