remove unneeded buf_size check (see AVPROBE_PADDING_SIZE)
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Aug 2007 16:12:50 +0000 (16:12 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Aug 2007 16:12:50 +0000 (16:12 +0000)
Originally committed as revision 10060 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/raw.c

index fc8bfaf..f2b0888 100644 (file)
@@ -409,9 +409,6 @@ static int ac3_probe(AVProbeData *p)
     uint8_t *buf, *buf2, *end;
     AC3HeaderInfo hdr;
 
-    if(p->buf_size < 7)
-        return 0;
-
     max_frames = 0;
     buf = p->buf;
     end = buf + p->buf_size;