[FFmpeg-devel] [PATCH] Simplify codebook allocation for Escape 124
Eli Friedman
eli.friedman
Wed Apr 2 09:38:24 CEST 2008
> > - av_free(s->codebooks[i].blocks);
> > - s->codebooks[i] = unpack_codebook(&gb, cb_depth, cb_size);
> > - if (!s->codebooks[i].blocks)
> > - return -1;
> >
>
> why does this check is removed ?
Why am I removing this check? It isn't necessary; the way this code
works, it can deal with a failed memory allocation without an early
return.
-Eli
More information about the ffmpeg-devel
mailing list