Commit 10b37718 authored by michael's avatar michael

Check offset in flv_probe()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19858 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7ca23cc0
...@@ -39,7 +39,7 @@ static int flv_probe(AVProbeData *p) ...@@ -39,7 +39,7 @@ static int flv_probe(AVProbeData *p)
const uint8_t *d; const uint8_t *d;
d = p->buf; d = p->buf;
if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V' && d[3] < 5 && d[5]==0) { if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V' && d[3] < 5 && d[5]==0 && AV_RB32(d+5)>8) {
return AVPROBE_SCORE_MAX; return AVPROBE_SCORE_MAX;
} }
return 0; return 0;
......
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