Mercurial > libavformat.hg
diff libnut.c @ 2001:1a3c9056982a libavformat
allocate 32 extra bytes at the end of the probe buffer and remove most probe buf_size checks
author | michael |
---|---|
date | Sun, 08 Apr 2007 11:34:15 +0000 |
parents | 7460077180aa |
children | ce70d4ec9e3a |
line wrap: on
line diff
--- a/libnut.c Sun Apr 08 09:50:08 2007 +0000 +++ b/libnut.c Sun Apr 08 11:34:15 2007 +0000 @@ -166,7 +166,7 @@ #endif //CONFIG_MUXERS static int nut_probe(AVProbeData *p) { - if (p->buf_size >= ID_LENGTH && !memcmp(p->buf, ID_STRING, ID_LENGTH)) return AVPROBE_SCORE_MAX; + if (!memcmp(p->buf, ID_STRING, ID_LENGTH)) return AVPROBE_SCORE_MAX; return 0; }