Vladimir Eremeev wrote:
[...]
>> Vladimir Eremeev wrote:
>> [...]
>>> Here are the timestamps, which I have received, when my application was
>>> reading live MPEG TS:
>>> pkt.pts=8589902202, pkt.dts=8589902202 
>> [...]
>>> pkt.pts=8589927402, pkt.dts=8589927402 
>>> pkt.pts=7210,           pkt.dts=-3590      
>>> pkt.pts=10,     pkt.dts=10 
>>> pkt.pts=3610,           pkt.dts=3610
>> [...]
>>
>> So, av_read_frame() is returning timestamps on 33 bits
>> (if you interpret these timestamps with 33bit math, they
>> are all ok).
>>  
> I think so too.
> But why does negative value appear?

Because you are printing the timestamp as a signed value ;-)
Note that 2^33 - 3590 = 8589927402 + 3600, so everything seems
to be ok. If you do not like the negative value, just use "%Lu"
(I assume you are using "%Ld"?).

That said, I repeat that I do not know if av_read_frame() is
supposed to return values on 33bit, or if some code in utils.c
is supposed to convert them to 64bit...


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

Reply via email to