vaapidecode: codec_data minimal size is 7

When the format of a H.264 stream is AVC3, the SPS and PPS are inside the
stream, not in the codec_data, so the size of codec_data might be 7.

This patch reduces the minimal size of the codec_data buffer from 8 to 7.

https://bugzilla.gnome.org/show_bug.cgi?id=771441
This commit is contained in:
Víctor Manuel Jáquez Leal 2016-09-14 18:42:09 +02:00
parent 99d404f1df
commit 9afa0ce471

View file

@ -4233,7 +4233,7 @@ gst_vaapi_decoder_h264_decode_codec_data (GstVaapiDecoder * base_decoder,
unit.parsed_info = NULL;
if (buf_size < 8)
if (buf_size < 7)
return GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA;
if (buf[0] != 1) {