From 8176bd1a4689ff08b0e85984563ad8288110f1a7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 25 Jun 2004 18:39:57 +0000 Subject: [PATCH] overflow fix Originally committed as revision 3250 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tests/tiny_psnr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c index 84ad90ebce..572dd27558 100644 --- a/tests/tiny_psnr.c +++ b/tests/tiny_psnr.c @@ -68,9 +68,10 @@ static uint64_t log16(uint64_t a){ a<<=16; for(i=19;i>=0;i--){ - if(a<(exp16_table[i]<<16)) continue; + int64_t b= exp16_table[i]; + if(a<(b<<16)) continue; out |= 1<