# HG changeset patch # User reimar # Date 1170508831 0 # Node ID acac2d8bc25f0c31390da2a7a778e1b6e0463307 # Parent 035fd43fe5f1b92484c800c5cc191f3924f52690 Cosmetics diff -r 035fd43fe5f1 -r acac2d8bc25f libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Sat Feb 03 13:19:21 2007 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sat Feb 03 13:20:31 2007 +0000 @@ -432,12 +432,12 @@ } 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);