[FFmpeg-cvslog] nvenc: Properly free the fifos
Luca Barbato
git at videolan.org
Thu Aug 27 09:51:28 CEST 2015
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Aug 24 01:29:59 2015 +0200| [413d4e54a9bffe2d0afdc6d8a80f516e5df6a421] | committer: Luca Barbato
nvenc: Properly free the fifos
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=413d4e54a9bffe2d0afdc6d8a80f516e5df6a421
---
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);
More information about the ffmpeg-cvslog
mailing list