mpv/audio/filter
nanahi 7ab1080749 af_scaletempo2: fix false reporting of frame availability
With certain speed settings, the following can happen at the start of
the playback:

- can_perform_wsola returns false, so no frames are written
- mp_scaletempo2_frames_available returns true when
  p->input_buffer_final_frames is 0 and target_block_index < 0

This results in infinite loop and completely stalls audio filter
processing and playback. Fix this by only checking this condition
after the final frame is set.

Fixes: 8080d00d7f
2024-03-28 16:16:43 +01:00
..
af_drop.c
af_format.c
af_lavcac3enc.c af_lavcac3enc: fix memory leak on 2ch audio 2024-03-19 19:32:55 +01:00
af_rubberband.c various: remove trailing whitespace 2023-10-30 16:45:47 +00:00
af_scaletempo.c
af_scaletempo2.c af_scaletempo2: better defaults 2023-10-15 13:39:59 +00:00
af_scaletempo2_internals.c af_scaletempo2: fix false reporting of frame availability 2024-03-28 16:16:43 +01:00
af_scaletempo2_internals.h