aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gxf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-04-08 11:34:15 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-04-08 11:34:15 +0000
commit87e8788680e16c51f6048af26f3f7830c35207a5 (patch)
treefa9a92796c9981383e81a1729fa191548c88ea0f /libavformat/gxf.c
parentf118d254bed53d8cadaedbb295c06639dc0f76aa (diff)
downloadffmpeg-87e8788680e16c51f6048af26f3f7830c35207a5.tar.gz
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
Diffstat (limited to 'libavformat/gxf.c')
-rw-r--r--libavformat/gxf.c2
1 files changed, 0 insertions, 2 deletions
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;