mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 06:46:55 +00:00
Avoid crash in uninit-without-config case
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18825 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
cc3af33260
commit
1f3936ab24
@ -282,8 +282,10 @@ static void uninit(struct vf_instance_s* vf){
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user