diff options
author | Mike Melanson <mike@multimedia.cx> | 2003-09-20 21:54:33 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2003-09-20 21:54:33 +0000 |
commit | e7106d5b8ebea5106876cfdf98b730ab6a715a4c (patch) | |
tree | 3656ae8793a9a5659171d712b4c18ac128bd0695 /libavformat/idroq.c | |
parent | b9ebf325c6baf50f595966c2ae9e9d112e83531d (diff) | |
download | ffmpeg-e7106d5b8ebea5106876cfdf98b730ab6a715a4c.tar.gz |
clean up 4xm demuxer; make valgrind just a little happier
Originally committed as revision 2296 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/idroq.c')
-rw-r--r-- | libavformat/idroq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/idroq.c b/libavformat/idroq.c index 15c6d55131..060db58116 100644 --- a/libavformat/idroq.c +++ b/libavformat/idroq.c @@ -62,6 +62,9 @@ typedef struct RoqDemuxContext { static int roq_probe(AVProbeData *p) { + if (p->buf_size < 6) + return 0; + if ((LE_16(&p->buf[0]) != RoQ_MAGIC_NUMBER) || (LE_32(&p->buf[2]) != 0xFFFFFFFF)) return 0; |