aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-02-20 23:06:18 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-02-20 23:06:18 +0000
commit10cfafa578e8656c9bc031d6f3d9ed8dff65bb16 (patch)
tree7a4b315a489c9ab0d0be355735df68681773a845 /src
parent6b6c598b466c8436ef120bd8ef0e3bc296d976cf (diff)
downloadusdx-10cfafa578e8656c9bc031d6f3d9ed8dff65bb16.tar.gz
usdx-10cfafa578e8656c9bc031d6f3d9ed8dff65bb16.tar.xz
usdx-10cfafa578e8656c9bc031d6f3d9ed8dff65bb16.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/ffmpeg/mathematics.pas11
-rw-r--r--src/lib/ffmpeg/rational.pas1
2 files changed, 12 insertions, 0 deletions
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;