decoder: vp9: Assign values for profile and bit_depth from frame header
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 4 Mar 2016 08:51:42 +0000 (10:51 +0200)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 4 Mar 2016 08:51:42 +0000 (10:51 +0200)
bit_depth field has added only in VA-API 0.39.0, added version check.

gst-libs/gst/vaapi/gstvaapidecoder_vp9.c

index c8b6599..33a9b2c 100644 (file)
@@ -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) ==