summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_ffmpeg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 93ba5d660b..dfd215c986 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -432,12 +432,12 @@ static void uninit(sh_video_t *sh){
}
if (avctx) {
- if (avctx && avctx->codec && avcodec_close(avctx) < 0)
- mp_msg(MSGT_DECVIDEO,MSGL_ERR, MSGTR_CantCloseCodec);
+ if (avctx->codec && avcodec_close(avctx) < 0)
+ mp_msg(MSGT_DECVIDEO,MSGL_ERR, MSGTR_CantCloseCodec);
- av_freep(&avctx->extradata);
- av_freep(&avctx->palctrl);
- av_freep(&avctx->slice_offset);
+ av_freep(&avctx->extradata);
+ av_freep(&avctx->palctrl);
+ av_freep(&avctx->slice_offset);
}
av_freep(&avctx);