summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-09-14 18:42:09 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-09-15 10:38:08 +0200
commit9afa0ce47169cc91aa212dcf7db375a64244c0ba (patch)
tree948410483db885204106860b0a01f197a5555d44
parent99d404f1df588e7eb0fd3dced4cf19cec93a2120 (diff)
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
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
index 3df0df95..e8651a14 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) {