]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/cuviddec: fix copy&paste error
authorTimo Rothenpieler <timo@rothenpieler.org>
Thu, 1 Oct 2020 18:20:48 +0000 (20:20 +0200)
committerTimo Rothenpieler <timo@rothenpieler.org>
Thu, 1 Oct 2020 18:20:48 +0000 (20:20 +0200)
libavcodec/cuviddec.c

index a3d0bdd93c33cf5d938e2d967303fad1cc2a2c93..5d099e31a2d6f85f25b7b70171596ed43f03be98 100644 (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;