Commit 647ec6fc authored by Michael Niedermayer's avatar Michael Niedermayer

bit: require at least 1 frame for probing

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 658c5209
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment