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.
This commit is contained in:
Timo Rothenpieler 2017-11-12 15:15:55 +01:00
parent 65c4f4d106
commit 3e0e163458

View File

@ -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;