[FFmpeg-devel] About guess_correct_pts / AVFrame.best_effort_timestamp
Måns Rullgård
mans
Wed Feb 16 17:38:57 CET 2011
Nicolas George <nicolas.george at normalesup.org> writes:
> L'octidi 28 pluvi?se, an CCXIX, M?ns Rullg?rd a ?crit?:
>> No, he should put a special case for no PTS on an input frame:
>>
>> pts = frame.pkt_pts != AV_NOPTS_VALUE? frame.pkt_pts : prev_pts + 1/framerate;
>> prev_pts = pts;
>
> And this should be duplicated in all client applications?
It's two lines. Big deal.
>> This code will always work.
>
> I am rather dubious.
It has always worked for me.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list