h264parse: minimum size of parsable avcC data should be 8

This commit is contained in:
Sreerenj Balachandran 2011-10-05 12:09:04 +03:00 committed by Mark Nauwelaerts
parent 8e2c5833f1
commit bbc30f3644

View file

@ -1226,7 +1226,7 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
size = GST_BUFFER_SIZE (codec_data);
/* parse the avcC data */
if (size < 7)
if (size < 8)
goto avcc_too_small;
/* parse the version, this must be 1 */
if (data[0] != 1)