Revision 8a47d90b libavutil/rational.h

View differences:

libavutil/rational.h
48 48
static inline int av_cmp_q(AVRational a, AVRational b){
49 49
    const int64_t tmp= a.num * (int64_t)b.den - b.num * (int64_t)a.den;
50 50

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

  

Also available in: Unified diff