mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avcodec/nvenc: use provided constant for max extradata size
This commit is contained in:
parent
c7a60124e3
commit
eb1e359a14
@ -1783,7 +1783,8 @@ static av_cold int nvenc_setup_extradata(AVCodecContext *avctx)
|
|||||||
|
|
||||||
NVENCSTATUS nv_status;
|
NVENCSTATUS nv_status;
|
||||||
uint32_t outSize = 0;
|
uint32_t outSize = 0;
|
||||||
char tmpHeader[256];
|
char tmpHeader[NV_MAX_SEQ_HDR_LEN];
|
||||||
|
|
||||||
NV_ENC_SEQUENCE_PARAM_PAYLOAD payload = { 0 };
|
NV_ENC_SEQUENCE_PARAM_PAYLOAD payload = { 0 };
|
||||||
payload.version = NV_ENC_SEQUENCE_PARAM_PAYLOAD_VER;
|
payload.version = NV_ENC_SEQUENCE_PARAM_PAYLOAD_VER;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user