summaryrefslogtreecommitdiff
path: root/libavcodec/cuviddec.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2020-10-01 20:20:48 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2020-10-01 20:20:48 +0200
commitbba626208000c627e3773f248ab15e2081577e05 (patch)
tree93866cba094ed69ceaee333bb2b6ca3fa742a4dc /libavcodec/cuviddec.c
parent22a2386a561ccbaabbbfd5cf7f89b2cbbade71b0 (diff)
avcodec/cuviddec: fix copy&paste error
Diffstat (limited to 'libavcodec/cuviddec.c')
-rw-r--r--libavcodec/cuviddec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c
index a3d0bdd93c..5d099e31a2 100644
--- a/libavcodec/cuviddec.c
+++ b/libavcodec/cuviddec.c
@@ -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;