Mercurial > libavformat.hg
comparison au.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 | 3ffb9763dfc2 |
children | b21c2af60bc9 |
comparison
equal
deleted
inserted
replaced
2000:ce51095f383b | 2001:1a3c9056982a |
---|---|
101 #endif //CONFIG_MUXERS | 101 #endif //CONFIG_MUXERS |
102 | 102 |
103 static int au_probe(AVProbeData *p) | 103 static int au_probe(AVProbeData *p) |
104 { | 104 { |
105 /* check file header */ | 105 /* check file header */ |
106 if (p->buf_size <= 24) | |
107 return 0; | |
108 if (p->buf[0] == '.' && p->buf[1] == 's' && | 106 if (p->buf[0] == '.' && p->buf[1] == 's' && |
109 p->buf[2] == 'n' && p->buf[3] == 'd') | 107 p->buf[2] == 'n' && p->buf[3] == 'd') |
110 return AVPROBE_SCORE_MAX; | 108 return AVPROBE_SCORE_MAX; |
111 else | 109 else |
112 return 0; | 110 return 0; |