mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
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:
parent
99d404f1df
commit
9afa0ce471
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue