[FFmpeg-cvslog] avcodec/nvdec: don't add thread buffer twice
Timo Rothenpieler
git at videolan.org
Sun Nov 12 16:52:56 EET 2017
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Sun Nov 12 15:15:55 2017 +0100| [3e0e1634585b1a26b7d753aa42c7f350636927ae] | committer: 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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e0e1634585b1a26b7d753aa42c7f350636927ae
---
libavcodec/nvdec.c | 3 ---
1 file changed, 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;
More information about the ffmpeg-cvslog
mailing list