changeset 22158:a6a93224cf4d

Avoid crash when uninit is called without ever calling config in x264 encoder
author reimar
date Thu, 08 Feb 2007 15:42:53 +0000
parents b6f01e891ba8
children 6d8f2be532d4
files libmpcodecs/ve_x264.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_x264.c	Thu Feb 08 14:19:18 2007 +0000
+++ b/libmpcodecs/ve_x264.c	Thu Feb 08 15:42:53 2007 +0000
@@ -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);
 }