aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/tta.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-02-03 02:09:36 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-02-04 03:10:10 +0100
commite31a7441559373d5c4aef4f359404c9dfcf16e42 (patch)
tree0a36c741ee631271dfd23852674abcd8d27512b9 /libavcodec/tta.c
parent0c8eb72ec5183909d87d8bba5c3b17337635c02a (diff)
downloadffmpeg-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/tta.c')
-rw-r--r--libavcodec/tta.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 936dff2333..eb4d71ff85 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -449,8 +449,7 @@ static int tta_decode_frame(AVCodecContext *avctx,
static av_cold int tta_decode_close(AVCodecContext *avctx) {
TTAContext *s = avctx->priv_data;
- if (s->decode_buffer)
- av_free(s->decode_buffer);
+ av_free(s->decode_buffer);
av_freep(&s->ch_ctx);
return 0;