diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-26 09:13:16 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-18 02:02:12 +0200 |
commit | b3e89ad6466a2b2dd14a0a675aa97a61b81300b8 (patch) | |
tree | adeedc169e0ee69b4cf31f265e5ecce04c516acf /libavcodec/smacker.c | |
parent | 3899adc29869301bfab77a9064a21da7a5a5163d (diff) | |
download | ffmpeg-b3e89ad6466a2b2dd14a0a675aa97a61b81300b8.tar.gz |
avcodec/smacker: Remove redundant checks for NULL before freeing
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/smacker.c')
-rw-r--r-- | libavcodec/smacker.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c index 5e1b8c59ff..5e88e18aec 100644 --- a/libavcodec/smacker.c +++ b/libavcodec/smacker.c @@ -254,8 +254,7 @@ static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int err = 0; error: for (int i = 0; i < 2; i++) { - if (vlc[i].table) - ff_free_vlc(&vlc[i]); + ff_free_vlc(&vlc[i]); av_free(h[i].bits); av_free(h[i].lengths); av_free(h[i].values); @@ -732,8 +731,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, error: for(i = 0; i < 4; i++) { - if(vlc[i].table) - ff_free_vlc(&vlc[i]); + ff_free_vlc(&vlc[i]); av_free(h[i].bits); av_free(h[i].lengths); av_free(h[i].values); |