encode_lavc: don't use deprecated `avcodec_close`

Deprecated upstream 1cc24d7495
This commit is contained in:
llyyr 2024-02-19 01:55:59 +05:30 committed by sfan5
parent 6a5a3ec3bf
commit 4a563a6390
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}