mirror of https://github.com/mpv-player/mpv
encode_lavc: don't use deprecated `avcodec_close`
Deprecated upstream 1cc24d7495
This commit is contained in:
parent
6a5a3ec3bf
commit
4a563a6390
|
@ -906,7 +906,7 @@ bool encoder_init_codec_and_muxer(struct encoder_context *p,
|
|||
return true;
|
||||
|
||||
fail:
|
||||
avcodec_close(p->encoder);
|
||||
avcodec_free_context(&p->encoder);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue