Commit 3e0e1634 authored by Timo Rothenpieler's avatar Timo Rothenpieler

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.
parent 65c4f4d1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment