mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-10-19 18:03:17 +00:00
avcodec/nvdec: reset bitstream_len/nb_slices when resetting bitstream pointer
This commit is contained in:
parent
4ee74fc46d
commit
82abc7af81
1 changed files with 2 additions and 0 deletions
|
@ -668,6 +668,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…
Add table
Add a link
Reference in a new issue