mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-09-27 13:14:10 +08:00
fixup! lavc/rkmppenc: add RKMPP H264 and HEVC encoder
fix leaks in mpp_enc_cfg. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
@@ -889,6 +889,11 @@ static int rkmpp_encode_close(AVCodecContext *avctx)
|
|||||||
r->cfg_init = 0;
|
r->cfg_init = 0;
|
||||||
r->async_frames = 0;
|
r->async_frames = 0;
|
||||||
|
|
||||||
|
if (r->mcfg) {
|
||||||
|
mpp_enc_cfg_deinit(r->mcfg);
|
||||||
|
r->mcfg = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (r->mapi) {
|
if (r->mapi) {
|
||||||
r->mapi->reset(r->mctx);
|
r->mapi->reset(r->mctx);
|
||||||
mpp_destroy(r->mctx);
|
mpp_destroy(r->mctx);
|
||||||
|
Reference in New Issue
Block a user