kirankoyande / php-reader

Automatically exported from code.google.com/p/php-reader
0 stars 0 forks source link

Division by zero in Zend_Media_Mpeg_Abs class #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

With some particular MP3 file an error (Division by zero) occured on line
215 in Zend_Media_Mpeg_Abs.

In PJ the patch to fix it. (and the MP3 file who make the issue)

For information getLengthEstimate() is wrong, but getLength() method return
good value.

Original issue reported on code.google.com by lab...@gmail.com on 1 Apr 2010 at 4:15

Attachments:

GoogleCodeExporter commented 9 years ago
Problem reproduced and fixed. Fix committed to subversions, thanks for 
reporting!

The error was caused by zero frames set in the Xing header (which I used to 
make the
estimates faster). I never thought it could be zero as well.

Try the code in subversion and let me know if you have any problems.

Original comment by svollbehr on 7 Apr 2010 at 9:11

GoogleCodeExporter commented 9 years ago
Thx, the new version works fine :)

Original comment by lab...@gmail.com on 9 Apr 2010 at 9:41

GoogleCodeExporter commented 9 years ago

Original comment by svollbehr on 9 Apr 2010 at 6:48