diff libmpcodecs/vf_mcdeint.c @ 18821:ac61a42feb47

Avoid crash in uninit-without-config case
author reimar
date Mon, 26 Jun 2006 17:01:07 +0000
parents b1b3d79011b9
children bc9e95184521
line wrap: on
line diff
--- a/libmpcodecs/vf_mcdeint.c	Mon Jun 26 10:50:45 2006 +0000
+++ b/libmpcodecs/vf_mcdeint.c	Mon Jun 26 17:01:07 2006 +0000
@@ -282,8 +282,10 @@
         vf->priv->src[i]= NULL;
     }
 #endif
+    if (vf->priv->avctx_enc) {
     avcodec_close(vf->priv->avctx_enc);
     av_freep(&vf->priv->avctx_enc);
+    }
 
     free(vf->priv->outbuf);
     free(vf->priv);