diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c index 3df0df958c..e8651a146d 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c @@ -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) {