Re: GStreamer 0.01




On May 25, 2005, at 7:19 PM, Matthias Bläsing wrote:

BUT (Please! Don't hurt me ;-)

It's getting strange again:

I have a mp3 file, which (according to perl):

Total (Tag):1165425152    (Tag Information Length)
Total (Dec):57965714285   (Decoder Information Length)

And this is, what python has to say about it:

Total (Tag):57000000000
Total (Dec):57965714285

Oh why does perl change the variable????


57965714285 / 2^32
13

The number is 13 times too big to fit into a 32-bit integer. Perl's IV (integer value) is guaranteed to be as big as a pointer on your platform. If you're on a 32-bit platform, IV is 32 bits, and the 64- bit count of nanoseconds in the file is being truncated.

The GStreamer bindings will probably have to depend on Math::BigInt for these numbers.

--
"Quit hittin' yourself!  Quit hittin' yourself!"
   -- Elysse, playing with a newborn baby.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]