[FFmpeg-cvslog] avcodec/nvenc: removed unused and deprecated field

Timo Rothenpieler git at videolan.org
Wed Oct 21 19:52:51 EEST 2020


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Wed Oct 21 18:47:30 2020 +0200| [1bf86ee907709e37c0104908e56ec77d5d854c87] | committer: Timo Rothenpieler

avcodec/nvenc: removed unused and deprecated field

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1bf86ee907709e37c0104908e56ec77d5d854c87
---

 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



More information about the ffmpeg-cvslog mailing list