From 3e0e1634585b1a26b7d753aa42c7f350636927ae Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Sun, 12 Nov 2017 15:15:55 +0100 Subject: avcodec/nvdec: don't add thread buffer twice This is already added to the initial pool size in ff_decode_get_hw_frames_ctx, so adding it here again increases the amount of surfaces needlessly. --- libavcodec/nvdec.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'libavcodec/nvdec.c') diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c index e4babad43e..58ebeeb9c1 100644 --- a/libavcodec/nvdec.c +++ b/libavcodec/nvdec.c @@ -430,9 +430,6 @@ int ff_nvdec_frame_params(AVCodecContext *avctx, return AVERROR(EINVAL); } - if (avctx->thread_type & FF_THREAD_FRAME) - dpb_size += avctx->thread_count; - frames_ctx->format = AV_PIX_FMT_CUDA; frames_ctx->width = avctx->coded_width; frames_ctx->height = avctx->coded_height; -- cgit v1.2.3