diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-03-25 09:50:24 -0400 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-03-28 16:16:43 +0100 |
commit | 7ab1080749b02e3e545166e67528c6a039e04969 (patch) | |
tree | 0561f466345839eab8ef61aaa0d06250afd65391 /misc/thread_tools.h | |
parent | f4a7931c534158d254a4a36f289494c1de6a16b9 (diff) | |
download | mpv-7ab1080749b02e3e545166e67528c6a039e04969.tar.bz2 mpv-7ab1080749b02e3e545166e67528c6a039e04969.tar.xz |
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: 8080d00d7f31a0e1ba25418e0f08474f1a2f1f61
Diffstat (limited to 'misc/thread_tools.h')
0 files changed, 0 insertions, 0 deletions