[Ffmpeg-devel] Bug in pts computation in compute_pkt_fields() ?

Martin Wache M.Wache
Wed Mar 21 00:30:56 CET 2007


Hi,

Wolfram Gloger schrieb:
> Hi,
> 
>> Sure, each pair of lines is one call to compute_pkt_fields(), the first
>> line is at the start of compute_pkt_fields(), the second at the end:
>> st->cur_dts 8000000000000000 pkt->pts 8000000000000000 pkt->dts
>> 8000000000000000 33
>> st->cur_dts 0 pkt->pts 0 pkt->dts 0
>>
>> st->cur_dts 0 pkt->pts 8000000000000000 pkt->dts 8000000000000000 33
>> st->cur_dts 870 pkt->pts 0 pkt->dts 0
>>
>> st->cur_dts 870 pkt->pts 113e0e706 pkt->dts 113e0e706 33
>> st->cur_dts ffffffff13e0ef76 pkt->pts ffffffff13e0e706 pkt->dts
>> ffffffff13e0e706
> 
> Here is the problem IMO, cur_dts must never become negative..
> What about pkt->duration at this point?
> 
pkt->duration is at the start of the method 0, and then calculated by
compute_frame_duration() to 2160, which seems to be correct.

Thank you for your help, if you have any more ideas what could go/I got
wrong I will try to check it...

Bye,

Martin




More information about the ffmpeg-devel mailing list