mirror of https://github.com/FFmpeg/FFmpeg.git
The Canopus Lossless decoder uses several VLCs and if initializing the ith VLC fails, all the VLCs 0..i have been freed; the ith VLC's table is initialized to NULL for this purpose. Yet it is totally unnecessary to free the ith VLC table at all: ff_init_vlc_sparse() cleans up after itself on error and if an error happens before ff_init_vlc_sparse(), the ith VLC hasn't been touched yet and doesn't need freeing. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>pull/356/head
parent
1d658e65ab
commit
c72a29df6b
1 changed files with 3 additions and 8 deletions
Loading…
Reference in new issue