avformat/hcom: check probe buffer size

pull/306/head
Paul B Mahol 6 years ago
parent 51978aefe8
commit 282a471857
  1. 2
      libavformat/hcom.c

@ -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;

Loading…
Cancel
Save