mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 04:58:06 +00:00
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:
parent
a63f68fb4c
commit
767fea6f4f
@ -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)
|
static void uninit(struct vf_instance_s *vf)
|
||||||
{
|
{
|
||||||
h264_module_t *mod=(h264_module_t*)vf->priv;
|
h264_module_t *mod=(h264_module_t*)vf->priv;
|
||||||
|
if (mod->x264)
|
||||||
x264_encoder_close(mod->x264);
|
x264_encoder_close(mod->x264);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user