diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-02-03 02:09:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-04 03:10:10 +0100 |
commit | e31a7441559373d5c4aef4f359404c9dfcf16e42 (patch) | |
tree | 0a36c741ee631271dfd23852674abcd8d27512b9 /libavcodec/truemotion2.c | |
parent | 0c8eb72ec5183909d87d8bba5c3b17337635c02a (diff) | |
download | ffmpeg-e31a7441559373d5c4aef4f359404c9dfcf16e42.tar.gz |
Remove a few if (p) av_free(p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 437fb1c87d7b4b0730db97d0858b4f39fffff2a9)
Diffstat (limited to 'libavcodec/truemotion2.c')
-rw-r--r-- | libavcodec/truemotion2.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c index d20ee94b29..86454ec291 100644 --- a/libavcodec/truemotion2.c +++ b/libavcodec/truemotion2.c @@ -185,8 +185,7 @@ static int tm2_build_huff_table(TM2Context *ctx, TM2Codes *code) static void tm2_free_codes(TM2Codes *code) { - if(code->recode) - av_free(code->recode); + av_free(code->recode); if(code->vlc.table) free_vlc(&code->vlc); } @@ -859,13 +858,10 @@ static av_cold int decode_end(AVCodecContext *avctx){ AVFrame *pic = &l->pic; int i; - if(l->last) - av_free(l->last); - if(l->clast) - av_free(l->clast); + av_free(l->last); + av_free(l->clast); for(i = 0; i < TM2_NUM_STREAMS; i++) - if(l->tokens[i]) - av_free(l->tokens[i]); + av_free(l->tokens[i]); if(l->Y1){ av_free(l->Y1); av_free(l->U1); |