1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

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;