Mercurial > libavformat.hg
diff bethsoftvid.c @ 2001:1a3c9056982a libavformat
allocate 32 extra bytes at the end of the probe buffer and remove most probe buf_size checks
author | michael |
---|---|
date | Sun, 08 Apr 2007 11:34:15 +0000 |
parents | c97517791e6c |
children | 77ed2f4105b7 |
line wrap: on
line diff
--- a/bethsoftvid.c Sun Apr 08 09:50:08 2007 +0000 +++ b/bethsoftvid.c Sun Apr 08 11:34:15 2007 +0000 @@ -49,7 +49,7 @@ 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;