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/libxvidff.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/libxvidff.c')
-rw-r--r-- | libavcodec/libxvidff.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c index d95ddee8d7..771fc2be64 100644 --- a/libavcodec/libxvidff.c +++ b/libavcodec/libxvidff.c @@ -533,12 +533,9 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) { av_free(x->twopassbuffer); av_free(x->old_twopassbuffer); } - if( x->twopassfile != NULL ) - av_free(x->twopassfile); - if( x->intra_matrix != NULL ) - av_free(x->intra_matrix); - if( x->inter_matrix != NULL ) - av_free(x->inter_matrix); + av_free(x->twopassfile); + av_free(x->intra_matrix); + av_free(x->inter_matrix); return 0; } |