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
1 changed files with 2 additions and 1 deletions

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;