diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-08 15:29:17 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-11 00:28:04 +0200 |
commit | e9bbb39e94555f5bc8eb58e74c44dde87e28040a (patch) | |
tree | d28e02678c36edf89741435092c18717935fa1d5 | |
parent | 9cdf82c2c2f0cec6d3963737bfdf3b3f3112ff20 (diff) | |
download | ffmpeg-e9bbb39e94555f5bc8eb58e74c44dde87e28040a.tar.gz |
avcodec/truemotion2: Don't check before freeing VLC
ff_vlc_free() is of course compatible with freeing
a blank VLC.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/truemotion2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c index 5527fed958..366d8aefc1 100644 --- a/libavcodec/truemotion2.c +++ b/libavcodec/truemotion2.c @@ -222,8 +222,7 @@ out: static void tm2_free_codes(TM2Codes *code) { av_free(code->recode); - if (code->vlc.table) - ff_vlc_free(&code->vlc); + ff_vlc_free(&code->vlc); } static inline int tm2_get_token(GetBitContext *gb, TM2Codes *code) |