X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Favcodec.c;h=c4083919bb9403cff23ebe1a7705e966c9934fd0;hb=d07534b5f5f20b4f780f5b0284aca6354da00695;hp=a3858213759ab2bc5c6972517e4d15cbb64d2ec7;hpb=83b6471dcb762859f20b2c414decc755fcceb5e8;p=ffmpeg diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c index a3858213759..c4083919bb9 100644 --- a/libavcodec/avcodec.c +++ b/libavcodec/avcodec.c @@ -383,6 +383,8 @@ free_and_end: avctx->codec->caps_internal & FF_CODEC_CAP_INIT_CLEANUP))) avctx->codec->close(avctx); + if (CONFIG_FRAME_THREAD_ENCODER && avci->frame_thread_encoder) + ff_frame_thread_encoder_free(avctx); if (HAVE_THREADS && avci->thread_ctx) ff_thread_free(avctx);