Commit 282a4718 authored by Paul B Mahol's avatar Paul B Mahol

avformat/hcom: check probe buffer size

parent 51978aef
......@@ -27,6 +27,8 @@
static int hcom_probe(AVProbeData *p)
{
if (p->buf_size < 132)
return 0;
if (!memcmp(p->buf+65, "FSSD", 4) &&
!memcmp(p->buf+128, "HCOM", 4))
return AVPROBE_SCORE_MAX;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment