[FFmpeg-cvslog] tiny_psnr: fix undefined shift

Michael Niedermayer git at videolan.org
Wed Aug 1 20:00:39 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug  1 19:48:43 2012 +0200| [c99d3e2e6c370e366a32b1c0caa2b9dfc8ad5bd1] | committer: Michael Niedermayer

tiny_psnr: fix undefined shift

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c99d3e2e6c370e366a32b1c0caa2b9dfc8ad5bd1
---

 tests/tiny_psnr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c
index b4d05d3..b912061 100644
--- a/tests/tiny_psnr.c
+++ b/tests/tiny_psnr.c
@@ -129,7 +129,7 @@ static int run_psnr(FILE *f[2], int len, int shift, int skip_bytes)
     uint64_t dev;
     uint8_t buf[2][SIZE];
     uint64_t psnr;
-    int64_t max    = (1 << (8 * len)) - 1;
+    int64_t max    = (1LL << (8 * len)) - 1;
     int size0      = 0;
     int size1      = 0;
     int maxdist    = 0;



More information about the ffmpeg-cvslog mailing list