From 1eabfad5c3fc2b4f5b6f5b74849086780068b216 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Fri, 4 Mar 2016 10:51:42 +0200 Subject: [PATCH] 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. --- gst-libs/gst/vaapi/gstvaapidecoder_vp9.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c index c8b6599555..33a9b2cc57 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) ==