summaryrefslogtreecommitdiff
path: root/libavutil/mathematics.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-04-29 16:02:28 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-04-29 16:02:28 +0000
commit2bda41e5b2d9f74ef7e0e18037ff262e76000b77 (patch)
tree60cd0543f4148fb7232df15c571ee98a35d57d4d /libavutil/mathematics.c
parent5c1cb3792d063a1e3b974ed86591cfce2eca2c76 (diff)
extend range used for testing (larger range should work too but testing code overflows)
Originally committed as revision 5334 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/mathematics.c')
-rw-r--r--libavutil/mathematics.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/mathematics.c b/libavutil/mathematics.c
index b2e480fca1..1d7706f25a 100644
--- a/libavutil/mathematics.c
+++ b/libavutil/mathematics.c
@@ -113,9 +113,9 @@ int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq){
main(){
int64_t a,b,c,d,e;
- for(a=7; a<256LL*256*256*256*128; a=(a*3)+1){
- for(b=3; b<256LL*256*256*256*128; b=(b*5)/4+1){
- for(c=9; c<256LL*256*256*256*128; c=(c*7)/5+3 ){
+ for(a=7; a<(1LL<<60); a=(a*3)+1){
+ for(b=3; b<(1LL<<60); b=(b*5)/4+1){
+ for(c=9; c<(1LL<<60); c=(c*7)/5+3){
int64_t r= c/2;
AVInteger ai;
ai= av_mul_i(av_int2i(a), av_int2i(b));