aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffmpeg-0.7/test.h
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2012-04-18 20:53:24 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2012-04-18 20:53:24 +0000
commit9bc840d97697bc6445aab17368bad58d02018a2a (patch)
tree3e2ccb3473a5abdd4bb3eee5d11d49b5d6988403 /src/lib/ffmpeg-0.7/test.h
parente014db6853e12ce89c49f8fd469fd4a3d2b7110f (diff)
downloadusdx-9bc840d97697bc6445aab17368bad58d02018a2a.tar.gz
usdx-9bc840d97697bc6445aab17368bad58d02018a2a.tar.xz
usdx-9bc840d97697bc6445aab17368bad58d02018a2a.zip
Rename ffmpeg7 to ffmpeg-0.7
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2855 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/lib/ffmpeg-0.7/test.h')
-rw-r--r--src/lib/ffmpeg-0.7/test.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/ffmpeg-0.7/test.h b/src/lib/ffmpeg-0.7/test.h
new file mode 100644
index 00000000..6ea704f0
--- /dev/null
+++ b/src/lib/ffmpeg-0.7/test.h
@@ -0,0 +1,17 @@
+#include <stdint.h>
+#include <limits.h>
+#include "attributes.h"
+
+typedef struct AVRational{
+ int num; ///< numerator
+ int den; ///< denominator
+} AVRational;
+
+int av_cmp_q(AVRational a, AVRational b){
+ int tmp;
+
+ if(tmp) return ((tmp ^ a.den ^ b.den)>>63)|1;
+ else if(b.den && a.den) return 0;
+ else if(a.num && b.num) return (a.num>>31) - (b.num>>31);
+ else return INT_MIN;
+}