[SCM] libav/experimental: Check offset in flv_probe()
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:51:09 UTC 2013
The following commit has been merged in the experimental branch:
commit 37e34df5a5cb3c493123ea18dc3141f9eef13458
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Tue Sep 15 14:56:09 2009 +0000
Check offset in flv_probe()
Originally committed as revision 19858 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index c982708..b3b3cc1 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list