#include "internal.h"
#include "pcm.h"
-static int hcom_probe(AVProbeData *p)
+static int hcom_probe(const 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;