comparison shorten.c @ 4226:43ebe9279fa0 libavcodec

fix some potential security issues, patch by Matthias Hopf, mat at mshopf dot de
author bcoudurier
date Wed, 22 Nov 2006 01:11:29 +0000
parents c8c591fe26f8
children 6679d37a3338
comparison
equal deleted inserted replaced
4225:fad0e092cb68 4226:43ebe9279fa0
333 skip_bits(&s->gb, 8); 333 skip_bits(&s->gb, 8);
334 } 334 }
335 } 335 }
336 s->nwrap = FFMAX(NWRAP, maxnlpc); 336 s->nwrap = FFMAX(NWRAP, maxnlpc);
337 337
338 allocate_buffers(s); 338 if (allocate_buffers(s))
339 return -1;
339 340
340 init_offset(s); 341 init_offset(s);
341 342
342 if (s->version > 1) 343 if (s->version > 1)
343 s->lpcqoffset = V2LPCQOFFSET; 344 s->lpcqoffset = V2LPCQOFFSET;