| 2326 | } |
| 2327 | |
| 2328 | av_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 | |
| 2346 | av_cold AVCodecInternal *ff_decode_internal_alloc(void) |
| 2347 | { |
no test coverage detected