summaryrefslogtreecommitdiffstats
path: root/libavcodec/libxvidff.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-02-03 11:30:17 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-02-06 20:31:44 +0100
commitb9004bd50c2fa5d4c0ef71ec09c9e70ec83f2e87 (patch)
tree3291cd272016c68f1ddbcc55dd8cd56b4087c398 /libavcodec/libxvidff.c
parentc54ac7a8f252a03299c7686fb885c41ee9fc1233 (diff)
downloadffmpeg-streaming-b9004bd50c2fa5d4c0ef71ec09c9e70ec83f2e87.zip
ffmpeg-streaming-b9004bd50c2fa5d4c0ef71ec09c9e70ec83f2e87.tar.gz
Remove a few if (p) av_freep(&p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 523d9407d57e9210428b6d962f0ebf48aae55638)
Diffstat (limited to 'libavcodec/libxvidff.c')
-rw-r--r--libavcodec/libxvidff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c
index 771fc2b..9008b84 100644
--- a/libavcodec/libxvidff.c
+++ b/libavcodec/libxvidff.c
@@ -527,8 +527,7 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) {
xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL);
- if( avctx->extradata != NULL )
- av_freep(&avctx->extradata);
+ av_freep(&avctx->extradata);
if( x->twopassbuffer != NULL ) {
av_free(x->twopassbuffer);
av_free(x->old_twopassbuffer);
OpenPOWER on IntegriCloud