From 10cfafa578e8656c9bc031d6f3d9ed8dff65bb16 Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Sat, 20 Feb 2010 23:06:18 +0000 Subject: update of mathematics.pas to 50.8.0 git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2119 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/lib/ffmpeg/mathematics.pas | 11 +++++++++++ src/lib/ffmpeg/rational.pas | 1 + 2 files changed, 12 insertions(+) diff --git a/src/lib/ffmpeg/mathematics.pas b/src/lib/ffmpeg/mathematics.pas index 651c1404..32b4a6e6 100644 --- a/src/lib/ffmpeg/mathematics.pas +++ b/src/lib/ffmpeg/mathematics.pas @@ -104,6 +104,17 @@ function av_rescale_rnd (a, b, c: cint64; enum: TAVRounding): cint64; function av_rescale_q (a: cint64; bq, cq: TAVRational): cint64; cdecl; external av__util; {av_const} +{$IF LIBAVUTIL_VERSION >= 50008000} // 50.8.0 +(** + * Compares 2 timestamps each in its own timebases. + * The result of the function is undefined if one of the timestamps + * is outside the int64_t range when represented in the others timebase. + * @returns -1 if ts_a is before ts_b, 1 if ts_a is after ts_b or 0 if they represent the same position + *) +function av_compare_ts(ts_a: cint64; tb_a: TAVRational; ts_b: cint64; tb_b: TAVRational): cint; + cdecl; external av__util; +{$IFEND} + implementation end. diff --git a/src/lib/ffmpeg/rational.pas b/src/lib/ffmpeg/rational.pas index 0f7dd714..ca4bce9c 100644 --- a/src/lib/ffmpeg/rational.pas +++ b/src/lib/ffmpeg/rational.pas @@ -35,6 +35,7 @@ * update to * avutil max. version 50.7.0, Mon, Jan 4 2010 24:00:00 UTC * MiSchi + * check Sat, Feb 20 2010: Still fine *) unit rational; -- cgit v1.2.3