ffmpeg | branch: master | Timo Rothenpieler <t...@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;
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to