mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
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;
|
NV_ENCODE_API_FUNCTION_LIST *nv = &ctx->nvel.nvenc_funcs;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
av_fifo_free(ctx->timestamps);
|
||||||
|
av_fifo_free(ctx->pending);
|
||||||
|
av_fifo_free(ctx->ready);
|
||||||
|
|
||||||
if (ctx->in) {
|
if (ctx->in) {
|
||||||
for (i = 0; i < ctx->nb_surfaces; ++i) {
|
for (i = 0; i < ctx->nb_surfaces; ++i) {
|
||||||
nv->nvEncDestroyInputBuffer(ctx->nvenc_ctx, ctx->in[i].in);
|
nv->nvEncDestroyInputBuffer(ctx->nvenc_ctx, ctx->in[i].in);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user