From 1bf86ee907709e37c0104908e56ec77d5d854c87 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Wed, 21 Oct 2020 18:47:30 +0200 Subject: [PATCH] avcodec/nvenc: removed unused and deprecated field --- libavcodec/nvenc.c | 1 - libavcodec/nvenc.h | 1 - 2 files changed, 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