[MPlayer-cvslog] r22176 - trunk/libmpcodecs/ve_x264.c

reimar subversion at mplayerhq.hu
Thu Feb 8 16:42:53 CET 2007


Author: reimar
Date: Thu Feb  8 16:42:53 2007
New Revision: 22176

Modified:
   trunk/libmpcodecs/ve_x264.c

Log:
Avoid crash when uninit is called without ever calling config in x264 encoder


Modified: trunk/libmpcodecs/ve_x264.c
==============================================================================
--- trunk/libmpcodecs/ve_x264.c	(original)
+++ trunk/libmpcodecs/ve_x264.c	Thu Feb  8 16:42:53 2007
@@ -324,6 +324,7 @@
 static void uninit(struct vf_instance_s *vf)
 {
     h264_module_t *mod=(h264_module_t*)vf->priv;
+    if (mod->x264)
     x264_encoder_close(mod->x264);
 }
 



More information about the MPlayer-cvslog mailing list