avcodec/cuviddec: fix copy&paste error

This commit is contained in:
Timo Rothenpieler 2020-10-01 20:20:48 +02:00
parent 22a2386a56
commit bba6262080
1 changed files with 1 additions and 1 deletions

View File

@ -961,7 +961,7 @@ static av_cold int cuvid_decode_init(AVCodecContext *avctx)
goto error;
}
ctx->cuparse_ext->format.seqhdr_data_length = avctx->extradata_size;
ctx->cuparse_ext->format.seqhdr_data_length = extradata_size;
memcpy(ctx->cuparse_ext->raw_seqhdr_data, extradata, extradata_size);
ctx->cuparseinfo.pExtVideoInfo = ctx->cuparse_ext;