[FFmpeg-devel] [PATCH] First shot at AVCHD seeking via new seeking API

Ivan Schreter schreter
Sun Aug 9 09:48:18 CEST 2009


Hi Michael,

Michael Niedermayer wrote:
> [...]
> ive not checked to the code so i possibly miss somethng but timestamp
> code must be exact, that is for example if you compare 2 timestamps
> from 2 streams these must not be rescaled to AV_TIME_BASE but rather
> the compare must be done exactly
>   
But what if the streams have different st->time_base? Then it's 
impossible to compare directly, but it has to be rescaled to a common 
time base.

Since normally streams have siginificantly less resolution than 
AV_TIME_BASE, comparison with values rescaled to AV_TIME_BASE is as 
exact as with timestamps directly, but it takes into account the 
possibility of different time bases for each stream. Right?

Regards,

Ivan




More information about the ffmpeg-devel mailing list