]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/nvenc: removed unused and deprecated field
authorTimo Rothenpieler <timo@rothenpieler.org>
Wed, 21 Oct 2020 16:47:30 +0000 (18:47 +0200)
committerTimo Rothenpieler <timo@rothenpieler.org>
Wed, 21 Oct 2020 16:47:30 +0000 (18:47 +0200)
libavcodec/nvenc.c
libavcodec/nvenc.h

index f560947ceb392bffb929ed7afb07ea9731386a7d..4e081dc3933fb9654d5765f16a6505b183b59b9a 100644 (file)
@@ -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);
 
index 07e0ae1769547022ce81c43e9595acf80271f96b..f6f2a6361ab83f72fee8ea3628639f11fd4f3cf6 100644 (file)
@@ -81,7 +81,6 @@ typedef struct NvencSurface
 
     NV_ENC_OUTPUT_PTR output_surface;
     NV_ENC_BUFFER_FORMAT format;
-    int size;
 } NvencSurface;
 
 typedef struct NvencDynLoadFunctions