Revision b7cdddcd libavutil/mathematics.c
libavutil/mathematics.c  

78  78 
int64_t r=0; 
79  79 
assert(c > 0); 
80  80 
assert(b >=0); 
81 
assert(rnd >=0 && rnd<=5 && rnd!=4);


81 
assert((unsigned)rnd<=5 && rnd!=4);


82  82  
83  83 
if(a<0 && a != INT64_MIN) return av_rescale_rnd(a, b, c, rnd ^ ((rnd>>1)&1)); 
84  84 
Also available in: Unified diff