diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-02-03 04:09:36 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-04 05:10:10 +0300 |
commit | e31a7441559373d5c4aef4f359404c9dfcf16e42 (patch) | |
tree | 0a36c741ee631271dfd23852674abcd8d27512b9 /libavcodec/smacker.c | |
parent | 0c8eb72ec5183909d87d8bba5c3b17337635c02a (diff) |
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/smacker.c')
-rw-r--r-- | libavcodec/smacker.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c index 2fcc33511f..fa8b4e3a18 100644 --- a/libavcodec/smacker.c +++ b/libavcodec/smacker.c @@ -677,12 +677,9 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, int *data_size, for(i = 0; i < 4; i++) { if(vlc[i].table) free_vlc(&vlc[i]); - if(h[i].bits) - av_free(h[i].bits); - if(h[i].lengths) - av_free(h[i].lengths); - if(h[i].values) - av_free(h[i].values); + av_free(h[i].bits); + av_free(h[i].lengths); + av_free(h[i].values); } *data_size = unp_size; |