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.
This commit is contained in:
Sreerenj Balachandran 2016-03-04 10:51:42 +02:00
parent ad9be97310
commit 1eabfad5c3

View 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) ==