diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2024-03-30 00:12:03 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2024-03-30 00:12:23 +0100 |
commit | e99c273feca16439fa4750f52693d94136d95ea7 (patch) | |
tree | c88185dd9c7763e80effe3eb2a2ff43eddd2a1c1 | |
parent | 547c9201933f55787fd6818edeaabfeacc1ad4b6 (diff) | |
download | ffmpeg-e99c273feca16439fa4750f52693d94136d95ea7.tar.gz |
avcodec/nvdec: reset bitstream_len/nb_slices when resetting bitstream pointer
-rw-r--r-- | libavcodec/nvdec.c | 2 |
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; } |