Hi Michael,

Michael Conrad wrote:
> On Mon, 07 Jul 2008 08:56:39 -0400, Luca Abeni <[EMAIL PROTECTED]> wrote:
>> Hi Vladimir,
>>
>> Vladimir Eremeev wrote:
>> [...]
>>>>> But why does negative value appear?
>>>> Because you are printing the timestamp as a signed value ;-)
>>>>
>>> Yes, that's right.
>>> However, I thought, that sign bit is 63th.
>> Sorry, but I do not get your point:
>>> 8589927402(10) = 111111111111111111110001111101010(2)
>>> The timestamps have a difference of 3600, so if I append 3600, I will  
>>> get
>>> 8589931002 ( 111111111111111111111000111111010)
>> Which, printed as a signed integer is -3590
> 
> Only if your to-decimal function operates specifically on 33 bit values.

Yes, we are reasoning in the assumption that av_read_frame() returns 33bit
values (from Vladimir's findings, it seems it does - I do not know if this
is intended or if this is a bug):
http://lists.mplayerhq.hu/pipermail/libav-user/2008-July/000854.html


                                        Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to