h264parse: minimum size of parsable avcC data should be 8
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 5 Oct 2011 09:09:04 +0000 (12:09 +0300)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 6 Oct 2011 09:59:38 +0000 (11:59 +0200)
gst/videoparsers/gsth264parse.c

index d2009d60ef636ced69874d6a52564a8ea3f2c794..6e456398ad3c0d01a9a90cf79c5bd2f1bcba84cb 100644 (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)