[MPlayer-dev-eng] [PATCH] mcdeint crash on filter chain build failure (bug #523)
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Jun 25 11:14:20 CEST 2006
Hi,
when building the filter chain fails, uninit can be called without
config before.
Is the attached patch okay or should avcodec_close be changed to ignore
NULL?
Greetings,
Reimar Döffinger
-------------- next part --------------
Index: libmpcodecs/vf_mcdeint.c
===================================================================
--- libmpcodecs/vf_mcdeint.c (revision 18811)
+++ libmpcodecs/vf_mcdeint.c (working copy)
@@ -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);
More information about the MPlayer-dev-eng
mailing list