From 431e37e93f0941c5617407a15051a29ab54f764b Mon Sep 17 00:00:00 2001 From: jojo61 Date: Sun, 19 Jan 2020 16:58:28 +0100 Subject: [PATCH] try to fix memleak --- codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec.c b/codec.c index f5e4770..9b2988e 100644 --- a/codec.c +++ b/codec.c @@ -334,8 +334,8 @@ void CodecVideoOpen(VideoDecoder * decoder, int codec_id) decoder->VideoCtx->thread_count = 0; // decoder->VideoCtx->thread_type |= FF_THREAD_SLICE; } - if (av_opt_set_int(decoder->VideoCtx, "refcounted_frames", 1, 0) < 0) - Fatal(_("VAAPI Refcounts invalid\n")); +// if (av_opt_set_int(decoder->VideoCtx, "refcounted_frames", 1, 0) < 0) +// Fatal(_("VAAPI Refcounts invalid\n")); decoder->VideoCtx->thread_safe_callbacks = 0; #endif