mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2025-03-01 10:39:28 +00:00
try to fix memleak
This commit is contained in:
4
codec.c
4
codec.c
@@ -334,8 +334,8 @@ void CodecVideoOpen(VideoDecoder * decoder, int codec_id)
|
|||||||
decoder->VideoCtx->thread_count = 0;
|
decoder->VideoCtx->thread_count = 0;
|
||||||
// decoder->VideoCtx->thread_type |= FF_THREAD_SLICE;
|
// decoder->VideoCtx->thread_type |= FF_THREAD_SLICE;
|
||||||
}
|
}
|
||||||
if (av_opt_set_int(decoder->VideoCtx, "refcounted_frames", 1, 0) < 0)
|
// if (av_opt_set_int(decoder->VideoCtx, "refcounted_frames", 1, 0) < 0)
|
||||||
Fatal(_("VAAPI Refcounts invalid\n"));
|
// Fatal(_("VAAPI Refcounts invalid\n"));
|
||||||
decoder->VideoCtx->thread_safe_callbacks = 0;
|
decoder->VideoCtx->thread_safe_callbacks = 0;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user