From 87e8788680e16c51f6048af26f3f7830c35207a5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 8 Apr 2007 11:34:15 +0000 Subject: 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 --- libavformat/gxf.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/gxf.c') diff --git a/libavformat/gxf.c b/libavformat/gxf.c index ba2463eadf..a4a933c184 100644 --- a/libavformat/gxf.c +++ b/libavformat/gxf.c @@ -87,8 +87,6 @@ static int parse_packet_header(ByteIOContext *pb, pkt_type_t *type, int *length) static int gxf_probe(AVProbeData *p) { static const uint8_t startcode[] = {0, 0, 0, 0, 1, 0xbc}; // start with map packet static const uint8_t endcode[] = {0, 0, 0, 0, 0xe1, 0xe2}; - if (p->buf_size < 16) - return 0; if (!memcmp(p->buf, startcode, sizeof(startcode)) && !memcmp(&p->buf[16 - sizeof(endcode)], endcode, sizeof(endcode))) return AVPROBE_SCORE_MAX; -- cgit v1.2.3