diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2012-04-18 20:53:24 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2012-04-18 20:53:24 +0000 |
commit | 9bc840d97697bc6445aab17368bad58d02018a2a (patch) | |
tree | 3e2ccb3473a5abdd4bb3eee5d11d49b5d6988403 /src/lib/ffmpeg-0.7/test.h | |
parent | e014db6853e12ce89c49f8fd469fd4a3d2b7110f (diff) | |
download | usdx-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 '')
-rw-r--r-- | src/lib/ffmpeg-0.7/test.h | 17 |
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; +} |