Re: GStreamer 0.01

On Wed, 2005-05-25 at 23:03 -0400, muppet wrote:

57965714285 / 2^32

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.

Yeah, that's exactly the problem.  I've been trying to fight it with
various approaches but nothing succeeded.

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

The perl-xs guys suggested converting numbers to/from PVs (Perl strings)
and tell users to use Math::BigInt for calculations.  I'll see if this
works out.


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