From: Sreerenj Balachandran Date: Fri, 4 Mar 2016 08:51:42 +0000 (+0200) Subject: decoder: vp9: Assign values for profile and bit_depth from frame header X-Git-Tag: 1.19.3~503^2~1480 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1eabfad5c3fc2b4f5b6f5b74849086780068b216;p=platform%2Fupstream%2Fgstreamer.git decoder: vp9: Assign values for profile and bit_depth from frame header bit_depth field has added only in VA-API 0.39.0, added version check. --- diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c index c8b6599..33a9b2c 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c @@ -288,7 +288,10 @@ fill_picture (GstVaapiDecoderVp9 * decoder, GstVaapiPicture * picture) COPY_FIELD (frame_hdr, log2_tile_columns); COPY_FIELD (frame_hdr, frame_header_length_in_bytes); COPY_FIELD (frame_hdr, first_partition_size); - + COPY_FIELD (frame_hdr, profile); +#if VA_CHECK_VERSION (0, 39, 0) + COPY_FIELD (frame_hdr, bit_depth); +#endif g_assert (G_N_ELEMENTS (pic_param->mb_segment_tree_probs) == G_N_ELEMENTS (parser->mb_segment_tree_probs)); g_assert (G_N_ELEMENTS (pic_param->segment_pred_probs) ==