ffmpeg | branch: release/4.4 | Timo Rothenpieler <t...@rothenpieler.org> | Sat 
Mar 30 00:12:03 2024 +0100| [5d07afd48253b7dece9d481c0f3cdd186187c0d2] | 
committer: Timo Rothenpieler

avcodec/nvdec: reset bitstream_len/nb_slices when resetting bitstream pointer

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

 libavcodec/nvdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c
index 1c24bae8c1..caf9715707 100644
--- a/libavcodec/nvdec.c
+++ b/libavcodec/nvdec.c
@@ -667,6 +667,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;
 }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to