Browse Source

nvenc: Properly free the fifos

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.8
Luca Barbato 9 years ago
parent
commit
413d4e54a9
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/nvenc.c

+ 4
- 0
libavcodec/nvenc.c View File

@@ -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…
Cancel
Save