diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2017-11-12 15:15:55 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2017-11-12 15:46:39 +0100 |
commit | 3e0e1634585b1a26b7d753aa42c7f350636927ae (patch) | |
tree | f9673a284eb561068bd25f2ebf4d2a4488e50ab6 /libavcodec | |
parent | 65c4f4d1069b1ffbfb6484e133b827556c80fe65 (diff) | |
download | ffmpeg-3e0e1634585b1a26b7d753aa42c7f350636927ae.tar.gz |
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.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/nvdec.c | 3 |
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; |