Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-04-08 15:34:15 +0400
committerMichael Niedermayer <michaelni@gmx.at>2007-04-08 15:34:15 +0400
commit87e8788680e16c51f6048af26f3f7830c35207a5 (patch)
treefa9a92796c9981383e81a1729fa191548c88ea0f /libavformat/idroq.c
parentf118d254bed53d8cadaedbb295c06639dc0f76aa (diff)
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
Diffstat (limited to 'libavformat/idroq.c')
-rw-r--r--libavformat/idroq.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/idroq.c b/libavformat/idroq.c
index b8ee176ab9..ddda86fec8 100644
--- a/libavformat/idroq.c
+++ b/libavformat/idroq.c
@@ -58,9 +58,6 @@ typedef struct RoqDemuxContext {
static int roq_probe(AVProbeData *p)
{
- if (p->buf_size < 6)
- return 0;
-
if ((AV_RL16(&p->buf[0]) != RoQ_MAGIC_NUMBER) ||
(AV_RL32(&p->buf[2]) != 0xFFFFFFFF))
return 0;