[Ffmpeg-devel] Question on h263 decoder

Måns Rullgård mru
Mon Sep 19 16:05:11 CEST 2005


Francis Labonte said:
> Hi,
>
> how can the PTS be a frame number?  I think you should multiply the picture
> number by some time unit (num/denum x TimeUnit) to make it a timestamp...
> ___
> s->current_picture_ptr->pts=
> s->picture_number= (s->picture_number&~0xFF) + i;
> ____

That's correct.  The time_base is set to the frame rate, so the PTS is equal
to the frame number.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list