Browse Source

Fix av_cmp_q() with negative denominators.

Originally committed as revision 25283 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Michael Niedermayer 15 years ago
parent
commit
8a47d90b29
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/rational.h

+ 1
- 1
libavutil/rational.h View File

@@ -48,7 +48,7 @@ typedef struct AVRational{
static inline int av_cmp_q(AVRational a, AVRational b){
const int64_t tmp= a.num * (int64_t)b.den - b.num * (int64_t)a.den;

if(tmp) return (tmp>>63)|1;
if(tmp) return ((tmp ^ a.den ^ b.den)>>63)|1;
else return 0;
}



Loading…
Cancel
Save