aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2024-03-30 00:12:03 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2024-03-30 00:12:23 +0100
commite99c273feca16439fa4750f52693d94136d95ea7 (patch)
treec88185dd9c7763e80effe3eb2a2ff43eddd2a1c1
parent547c9201933f55787fd6818edeaabfeacc1ad4b6 (diff)
downloadffmpeg-e99c273feca16439fa4750f52693d94136d95ea7.tar.gz
avcodec/nvdec: reset bitstream_len/nb_slices when resetting bitstream pointer
-rw-r--r--libavcodec/nvdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c
index 553c9bdf18..1741ee7e47 100644
--- a/libavcodec/nvdec.c
+++ b/libavcodec/nvdec.c
@@ -664,6 +664,8 @@ int ff_nvdec_simple_end_frame(AVCodecContext *avctx)
NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
int ret = ff_nvdec_end_frame(avctx);
ctx->bitstream = NULL;
+ ctx->bitstream_len = 0;
+ ctx->nb_slices = 0;
return ret;
}