[FFmpeg-cvslog] r19858 - trunk/libavformat/flvdec.c
michael
subversion
Tue Sep 15 16:56:10 CEST 2009
Author: michael
Date: Tue Sep 15 16:56:09 2009
New Revision: 19858
Log:
Check offset in flv_probe()
Modified:
trunk/libavformat/flvdec.c
Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c Tue Sep 15 15:28:14 2009 (r19857)
+++ trunk/libavformat/flvdec.c Tue Sep 15 16:56:09 2009 (r19858)
@@ -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;
More information about the ffmpeg-cvslog
mailing list