aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-08-24 01:29:59 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-08-25 19:47:43 +0200
commit413d4e54a9bffe2d0afdc6d8a80f516e5df6a421 (patch)
tree8d17806ff18a89cd5e02b04a0d6a344a0f96a516
parent2157df425bd909854fd4afcec4aa3311d8a3b31b (diff)
downloadffmpeg-413d4e54a9bffe2d0afdc6d8a80f516e5df6a421.tar.gz
nvenc: Properly free the fifos
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r--libavcodec/nvenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index cd4e065733..3f19ed0f3a 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -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);