diff options
-rw-r--r-- | gst/videoparsers/gsth264parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index be2f46288..e4dcbc3f0 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -2583,6 +2583,10 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps) off = nalu.offset + nalu.size; } + if (off >= size) { + gst_buffer_unmap (codec_data, &map); + goto avcc_too_small; + } num_pps = data[off]; off++; |