comparison electronicarts.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 a782462e2497
children 2f0154760e5f
comparison
equal deleted inserted replaced
2000:ce51095f383b 2001:1a3c9056982a
163 } 163 }
164 164
165 165
166 static int ea_probe(AVProbeData *p) 166 static int ea_probe(AVProbeData *p)
167 { 167 {
168 if (p->buf_size < 4)
169 return 0;
170
171 if (AV_RL32(&p->buf[0]) != SCHl_TAG) 168 if (AV_RL32(&p->buf[0]) != SCHl_TAG)
172 return 0; 169 return 0;
173 170
174 return AVPROBE_SCORE_MAX; 171 return AVPROBE_SCORE_MAX;
175 } 172 }