From bbc30f36445bf3e71bd1c660b8322f4528217048 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Wed, 5 Oct 2011 12:09:04 +0300 Subject: [PATCH] h264parse: minimum size of parsable avcC data should be 8 --- gst/videoparsers/gsth264parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index d2009d60ef..6e456398ad 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -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)