mirror of https://git.ffmpeg.org/ffmpeg.git
nvenc: Properly free the fifos
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
2157df425b
commit
413d4e54a9
|
@ -771,6 +771,10 @@ av_cold int ff_nvenc_encode_close(AVCodecContext *avctx)
|
|||
NV_ENCODE_API_FUNCTION_LIST *nv = &ctx->nvel.nvenc_funcs;
|
||||
int i;
|
||||
|
||||
av_fifo_free(ctx->timestamps);
|
||||
av_fifo_free(ctx->pending);
|
||||
av_fifo_free(ctx->ready);
|
||||
|
||||
if (ctx->in) {
|
||||
for (i = 0; i < ctx->nb_surfaces; ++i) {
|
||||
nv->nvEncDestroyInputBuffer(ctx->nvenc_ctx, ctx->in[i].in);
|
||||
|
|
Loading…
Reference in New Issue