summaryrefslogtreecommitdiffstats
path: root/libavformat/bit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/bit.c')
-rw-r--r--libavformat/bit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/bit.c b/libavformat/bit.c
index 7400d24..d72d2a8 100644
--- a/libavformat/bit.c
+++ b/libavformat/bit.c
@@ -12,6 +12,9 @@ static int probe(AVProbeData *p)
{
int i, j;
+ if(p->buf_size < 0x40)
+ return 0;
+
for(i=0; i+3<p->buf_size && i< 10*0x50; ){
if(AV_RL16(&p->buf[0]) != SYNC_WORD)
return 0;
OpenPOWER on IntegriCloud