diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-24 18:05:34 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-29 11:22:35 +0100 |
commit | c72a29df6b4ec2858575bd8b6c3874784209c7b2 (patch) | |
tree | 6d9c3f4bb7de3e2bc69576badd6305b98d65284a /libavutil | |
parent | 1d658e65ab60ff0a542d875480474fb16e3413fd (diff) | |
download | ffmpeg-c72a29df6b4ec2858575bd8b6c3874784209c7b2.tar.gz |
avcodec/cllc: Don't unnecessarily free VLC
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>
Diffstat (limited to 'libavutil')
0 files changed, 0 insertions, 0 deletions