MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_decode_flush_buffers

Function ff_decode_flush_buffers

libavcodec/decode.c:2328–2344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2326}
2327
2328av_cold void ff_decode_flush_buffers(AVCodecContext *avctx)
2329{
2330 AVCodecInternal *avci = avctx->internal;
2331 DecodeContext *dc = decode_ctx(avci);
2332
2333 av_packet_unref(avci->last_pkt_props);
2334 av_packet_unref(avci->in_pkt);
2335
2336 dc->pts_correction_last_pts =
2337 dc->pts_correction_last_dts = INT64_MIN;
2338
2339 if (avci->bsf)
2340 av_bsf_flush(avci->bsf);
2341
2342 dc->nb_draining_errors = 0;
2343 dc->draining_started = 0;
2344}
2345
2346av_cold AVCodecInternal *ff_decode_internal_alloc(void)
2347{

Callers 1

avcodec_flush_buffersFunction · 0.85

Calls 3

decode_ctxFunction · 0.85
av_packet_unrefFunction · 0.85
av_bsf_flushFunction · 0.85

Tested by

no test coverage detected