mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
h264parse: minimum size of parsable avcC data should be 8
This commit is contained in:
parent
8e2c5833f1
commit
bbc30f3644
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue