Handle off-by-1 errors in cdparanoia progress parsing

Fixes the exception I got on ripping The Strokes - Someday
This commit is contained in:
Thomas Vander Stichele
2013-02-24 11:37:13 +01:00
parent f890ba7f57
commit 3f4291bb18
8 changed files with 181 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ from morituri.extern.log import log
FRAMES_PER_SECOND = 75
SAMPLES_PER_FRAME = 588
SAMPLES_PER_FRAME = 588 # a sample is 2 16-bit values, left and right channel
WORDS_PER_FRAME = SAMPLES_PER_FRAME * 2
BYTES_PER_FRAME = SAMPLES_PER_FRAME * 4