]> git.tuebingen.mpg.de Git - paraslash.git/commit
Fix tv_divide().
authorAndre Noll <maan@systemlinux.org>
Tue, 13 Nov 2007 19:13:02 +0000 (20:13 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 13 Nov 2007 19:13:02 +0000 (20:13 +0100)
commite0ab706af6691a8156b2ed7fe29b6c60792ea46a
treeedcdc6f5577c796c50f6682fe24a65db2c26bc8d
parent2e4fbe054c8746c9521529bcca4751451542e419
Fix tv_divide().

The old code contained an integer overflow which caused the mp3 audio
format handler to compute the chunk of large mp3 files incorrectly.

Moreover, the code was more complicated than necessary. So replace it
by a simple calculation which just transforms the given struct timeval
into its number of microseconds, does the division and transforms
the quotient back to a struct timeval.

Thanks to Gerrit Renker for pointing out the problem.
time.c