[FFmpeg-cvslog] avcodec/cuviddec: fix copy&paste error

Timo Rothenpieler git at videolan.org
Thu Oct 1 21:46:49 EEST 2020


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Thu Oct  1 20:20:48 2020 +0200| [bba626208000c627e3773f248ab15e2081577e05] | committer: Timo Rothenpieler

avcodec/cuviddec: fix copy&paste error

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bba626208000c627e3773f248ab15e2081577e05
---

 libavcodec/cuviddec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list