From 87e8788680e16c51f6048af26f3f7830c35207a5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 8 Apr 2007 11:34:15 +0000 Subject: allocate 32 extra bytes at the end of the probe buffer and remove most probe buf_size checks Originally committed as revision 8677 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/bethsoftvid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/bethsoftvid.c') diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c index 91fecb5841..0e73804f43 100644 --- a/libavformat/bethsoftvid.c +++ b/libavformat/bethsoftvid.c @@ -49,7 +49,7 @@ typedef struct BVID_DemuxContext static int vid_probe(AVProbeData *p) { // little endian VID tag, file starts with "VID\0" - if (p->buf_size < 4 || AV_RL32(p->buf) != MKTAG('V', 'I', 'D', 0)) + if (AV_RL32(p->buf) != MKTAG('V', 'I', 'D', 0)) return 0; return AVPROBE_SCORE_MAX; -- cgit v1.2.3