[FFmpeg-cvslog] avcodec/nvenc: use provided constant for max extradata size

Timo Rothenpieler git at videolan.org
Tue Nov 15 02:37:09 EET 2022


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Tue Nov 15 01:32:56 2022 +0100| [eb1e359a14e04367239a784506e1ae414512a104] | committer: Timo Rothenpieler

avcodec/nvenc: use provided constant for max extradata size

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

 libavcodec/nvenc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index b803e72cca..9726c565d3 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -1783,7 +1783,8 @@ static av_cold int nvenc_setup_extradata(AVCodecContext *avctx)
 
     NVENCSTATUS nv_status;
     uint32_t outSize = 0;
-    char tmpHeader[256];
+    char tmpHeader[NV_MAX_SEQ_HDR_LEN];
+
     NV_ENC_SEQUENCE_PARAM_PAYLOAD payload = { 0 };
     payload.version = NV_ENC_SEQUENCE_PARAM_PAYLOAD_VER;
 



More information about the ffmpeg-cvslog mailing list