summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/nvdec.c3
1 files changed, 0 insertions, 3 deletions
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;