[Ffmpeg-devel] Question on h263 decoder

Francis Labonte francis_labonte
Thu Sep 15 15:38:32 CEST 2005


Hi,

I would like to know why the h263 decoder is not setting the current picture 
timestamp?   Is it a bug or there is something I don't understand?

If I do something like that in h263.c:

s->current_picture_ptr->pts = 
s->avctx->time_base.num*s->picture_number*1000/s->avctx->time_base.den;

then it works.

I'me just trying to get the timestamp of the current image (for different 
decoder: h263, mepg4, ...) .  Is correct or appropriate  to use the "pts" 
field??

thank you
Francis






More information about the ffmpeg-devel mailing list