Commit 37e34df5 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Check offset in flv_probe()

Originally committed as revision 19858 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0535f919
......@@ -39,7 +39,7 @@ static int flv_probe(AVProbeData *p)
const uint8_t *d;
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 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