Restrict the preview frame slider and the reader seek to the last frame index (#1207)

* fix index bug

* fix rounding bug
This commit is contained in:
Harisreedhar
2026-07-27 18:51:35 +05:30
committed by GitHub
parent 66d4cad568
commit 5e8a37110d
4 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ def test_extract_audio_metadata() -> None:
assert audio_metadata.get('sample_rate') == 44100
assert audio_metadata.get('channel_total') == 1
assert audio_metadata.get('frame_total') == 167039
assert audio_metadata.get('frame_total') == 167040
assert audio_metadata.get('bit_rate') == 128000
audio_metadata = extract_audio_metadata(get_test_example_file('source-48000khz-2ch.wav'))