[FFmpeg-devel] [PATCH] lavf: Add system to seperate relative timestamps from absolute ones.

Tomas Härdin tomas.hardin at codemill.se
Wed Mar 7 22:41:34 CET 2012

On Wed, 2012-03-07 at 22:13 +0100, Michael Niedermayer wrote:
> With this we can always know if a timestamp is based on added durations
> from an unknown origin or if it is based on a correct timestamp (and possibly
> added durations)
> This should fix some bugs where this distinction was mixed up.
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  libavformat/utils.c     |   56 ++++++++++++++++++++++++++++++++--------------
>  tests/ref/lavf/wtv      |    2 +-
>  tests/ref/seek/lavf_wtv |    2 +-
>  3 files changed, 41 insertions(+), 19 deletions(-)

I'm OK with this assuming what I want to do works (which it will,
judging by WTV changing). I'll try to look more closely tomorrow.

I'm not sure if this makes the code easier or harder to read, but at
least it tries to straighten out some ambiguities. RELATIVE_TS_BASE
looks slightly suspect, but as long as it works..


More information about the ffmpeg-devel mailing list