History

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

Timo Rothenpieler committed 2 years ago

Commit e99c2731 parent 547c9201 file · +2 −0Browse files

Unified · Split

libavcodec/nvdec.c+2−0
@@ -664,6 +664,8 @@ int ff_nvdec_simple_end_frame(AVCodecContext *avctx) · 663 unmodified lines
664664 NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
665665 int ret = ff_nvdec_end_frame(avctx);
666666 ctx->bitstream = NULL;
667+ ctx->bitstream_len = 0;
668+ ctx->nb_slices = 0;
667669 return ret;
668670 }
669671

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t