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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22176 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-02-08 15:42:53 +00:00
parent a63f68fb4c
commit 767fea6f4f
1 changed files with 1 additions and 0 deletions

View File

@ -324,6 +324,7 @@ static int encode_frame(struct vf_instance_s *vf, x264_picture_t *pic_in)
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);
}