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

release/6.0
Timo Rothenpieler 9 months ago
parent 59918c65ad
commit a39e922fb7
  1. 2
      libavcodec/nvdec.c

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

Loading…
Cancel
Save