mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
One more fix for memleak
This commit is contained in:
parent
431e37e93f
commit
e0239a549e
6
codec.c
6
codec.c
@ -313,7 +313,7 @@ void CodecVideoOpen(VideoDecoder * decoder, int codec_id)
|
||||
decoder->VideoCtx->extra_hw_frames = 8; // VIDEO_SURFACES_MAX +1
|
||||
if (video_codec->capabilities & (AV_CODEC_CAP_AUTO_THREADS)) {
|
||||
Debug(3, "codec: auto threads enabled");
|
||||
decoder->VideoCtx->thread_count = 0;
|
||||
// decoder->VideoCtx->thread_count = 0;
|
||||
}
|
||||
|
||||
if (video_codec->capabilities & AV_CODEC_CAP_TRUNCATED) {
|
||||
@ -326,12 +326,12 @@ void CodecVideoOpen(VideoDecoder * decoder, int codec_id)
|
||||
}
|
||||
if (video_codec->capabilities & AV_CODEC_CAP_FRAME_THREADS) {
|
||||
Debug(3, "codec: supports frame threads");
|
||||
decoder->VideoCtx->thread_count = 0;
|
||||
// decoder->VideoCtx->thread_count = 0;
|
||||
// decoder->VideoCtx->thread_type |= FF_THREAD_FRAME;
|
||||
}
|
||||
if (video_codec->capabilities & AV_CODEC_CAP_SLICE_THREADS) {
|
||||
Debug(3, "codec: supports slice threads");
|
||||
decoder->VideoCtx->thread_count = 0;
|
||||
// decoder->VideoCtx->thread_count = 0;
|
||||
// decoder->VideoCtx->thread_type |= FF_THREAD_SLICE;
|
||||
}
|
||||
// if (av_opt_set_int(decoder->VideoCtx, "refcounted_frames", 1, 0) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user