diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2017-05-08 18:39:40 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2017-05-09 18:38:30 +0200 |
commit | 23538ad2eb76a0d27a1f2b2bcdccd857124a0224 (patch) | |
tree | c082afdae7affa6883dc19290d3d9e1e2274750a /libavcodec/nvenc.c | |
parent | 78518b72cf0330b43627e3540b85371a1be024d8 (diff) | |
download | ffmpeg-23538ad2eb76a0d27a1f2b2bcdccd857124a0224.tar.gz |
avcodec/nvenc: remove usage of deprecated fields
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 1d19a6bcce..0a625512c0 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -1132,7 +1132,6 @@ static av_cold int nvenc_alloc_surface(AVCodecContext *avctx, int idx) allocSurf.version = NV_ENC_CREATE_INPUT_BUFFER_VER; allocSurf.width = (avctx->width + 31) & ~31; allocSurf.height = (avctx->height + 31) & ~31; - allocSurf.memoryHeap = NV_ENC_MEMORY_HEAP_SYSMEM_CACHED; allocSurf.bufferFmt = ctx->surfaces[idx].format; nv_status = p_nvenc->nvEncCreateInputBuffer(ctx->nvencoder, &allocSurf); @@ -1145,12 +1144,6 @@ static av_cold int nvenc_alloc_surface(AVCodecContext *avctx, int idx) ctx->surfaces[idx].height = allocSurf.height; } - /* 1MB is large enough to hold most output frames. - * NVENC increases this automaticaly if it is not enough. */ - allocOut.size = 1024 * 1024; - - allocOut.memoryHeap = NV_ENC_MEMORY_HEAP_SYSMEM_CACHED; - nv_status = p_nvenc->nvEncCreateBitstreamBuffer(ctx->nvencoder, &allocOut); if (nv_status != NV_ENC_SUCCESS) { int err = nvenc_print_error(avctx, nv_status, "CreateBitstreamBuffer failed"); |