1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

avcodec/nvenc: use provided constant for max extradata size

This commit is contained in:
Timo Rothenpieler 2022-11-15 01:32:56 +01:00
parent c7a60124e3
commit eb1e359a14

View File

@ -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;