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>
pull/390/head
Andreas Rheinhardt 1 year ago
parent 9cdf82c2c2
commit e9bbb39e94
  1. 3
      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)

Loading…
Cancel
Save