1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-10-30 23:18:11 +02:00

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

This commit is contained in:
Timo Rothenpieler
2024-03-30 00:12:03 +01:00
parent f309408874
commit f4a6db1222

View File

@@ -665,6 +665,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;
}