Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -664,6 +664,8 @@ int ff_nvdec_simple_end_frame(AVCodecContext *avctx) · 663 unmodified lines | ||
| 664 | 664 | NVDECContext *ctx = avctx->internal->hwaccel_priv_data; |
| 665 | 665 | int ret = ff_nvdec_end_frame(avctx); |
| 666 | 666 | ctx->bitstream = NULL; |
| 667 | + ctx->bitstream_len = 0; | |
| 668 | + ctx->nb_slices = 0; | |
| 667 | 669 | return ret; |
| 668 | 670 | } |
| 669 | 671 | |