]> git.parisson.com Git - timeside.git/commitdiff
fix mp3 length
authoryomguy <yomguy@parisson.com>
Wed, 19 Sep 2012 12:34:02 +0000 (14:34 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 19 Sep 2012 12:34:02 +0000 (14:34 +0200)
tests/testdecoding.py

index 45c787c7eb96165844414fab86743a1eceffa8ec..99e3e11aaf550caa74a46f9e8d29bec8f98d17cf 100644 (file)
@@ -10,7 +10,7 @@ class TestDecoding(TestCase):
 
     def setUp(self):
         pass
-   
+
     def testWav(self):
         "Test wav decoding"
         self.source = os.path.join (os.path.dirname(__file__),  "samples/sweep.wav")
@@ -40,7 +40,7 @@ class TestDecoding(TestCase):
 
         # FIXME compute actual number of frames from file
         if os.path.splitext(self.source)[-1].lower() == '.mp3':
-            self.assertEquals(totalframes, 355969)
+            self.assertEquals(totalframes, 353665)
         elif os.path.splitext(self.source)[-1].lower() == '.ogg':
             self.assertEquals(totalframes, 352833)
         else: