summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2020-10-21 18:47:30 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2020-10-21 18:47:30 +0200
commit1bf86ee907709e37c0104908e56ec77d5d854c87 (patch)
treed94b7d6638948c360f7e8821b874bc894df907ac /libavcodec
parente0c8e517b6a0d82d8837f78425b62132443ecf15 (diff)
avcodec/nvenc: removed unused and deprecated field
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/nvenc.c1
-rw-r--r--libavcodec/nvenc.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index f560947ceb..4e081dc393 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -1482,7 +1482,6 @@ static av_cold int nvenc_alloc_surface(AVCodecContext *avctx, int idx)
}
ctx->surfaces[idx].output_surface = allocOut.bitstreamBuffer;
- ctx->surfaces[idx].size = allocOut.size;
av_fifo_generic_write(ctx->unused_surface_queue, &tmp_surface, sizeof(tmp_surface), NULL);
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h
index 07e0ae1769..f6f2a6361a 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -81,7 +81,6 @@ typedef struct NvencSurface
NV_ENC_OUTPUT_PTR output_surface;
NV_ENC_BUFFER_FORMAT format;
- int size;
} NvencSurface;
typedef struct NvencDynLoadFunctions