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
8
codec.c
8
codec.c
@ -313,8 +313,8 @@ void CodecVideoOpen(VideoDecoder * decoder, int codec_id)
|
|||||||
decoder->VideoCtx->extra_hw_frames = 8; // VIDEO_SURFACES_MAX +1
|
decoder->VideoCtx->extra_hw_frames = 8; // VIDEO_SURFACES_MAX +1
|
||||||
if (video_codec->capabilities & (AV_CODEC_CAP_AUTO_THREADS)) {
|
if (video_codec->capabilities & (AV_CODEC_CAP_AUTO_THREADS)) {
|
||||||
Debug(3, "codec: auto threads enabled");
|
Debug(3, "codec: auto threads enabled");
|
||||||
decoder->VideoCtx->thread_count = 0;
|
// decoder->VideoCtx->thread_count = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (video_codec->capabilities & AV_CODEC_CAP_TRUNCATED) {
|
if (video_codec->capabilities & AV_CODEC_CAP_TRUNCATED) {
|
||||||
Debug(3, "codec: supports truncated packets");
|
Debug(3, "codec: supports truncated packets");
|
||||||
@ -326,12 +326,12 @@ void CodecVideoOpen(VideoDecoder * decoder, int codec_id)
|
|||||||
}
|
}
|
||||||
if (video_codec->capabilities & AV_CODEC_CAP_FRAME_THREADS) {
|
if (video_codec->capabilities & AV_CODEC_CAP_FRAME_THREADS) {
|
||||||
Debug(3, "codec: supports 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;
|
// decoder->VideoCtx->thread_type |= FF_THREAD_FRAME;
|
||||||
}
|
}
|
||||||
if (video_codec->capabilities & AV_CODEC_CAP_SLICE_THREADS) {
|
if (video_codec->capabilities & AV_CODEC_CAP_SLICE_THREADS) {
|
||||||
Debug(3, "codec: supports 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;
|
// 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user