diff options
Diffstat (limited to 'src/lib/ffmpeg-0.7/test.h')
-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; +} |