Module: libav
Branch: master
Commit: 413d4e54a9bffe2d0afdc6d8a80f516e5df6a421

Author:    Luca Barbato <[email protected]>
Committer: Luca Barbato <[email protected]>
Date:      Mon Aug 24 01:29:59 2015 +0200

nvenc: Properly free the fifos

Signed-off-by: Luca Barbato <[email protected]>

---

 libavcodec/nvenc.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index cd4e065..3f19ed0 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);

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to