[FFmpeg-cvslog] dsputil: Replace a LONG_MAX check with HAVE_FAST_64BIT.

Alex Converse git at videolan.org
Thu Jul 21 16:54:41 CEST 2011


ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Mon Jul 18 17:48:45 2011 -0700| [d9a9f50a3683b577e9c391ce8cab9edc9b239fcb] | committer: Alex Converse

dsputil: Replace a LONG_MAX check with HAVE_FAST_64BIT.

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

 libavcodec/dsputil.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 4b26f68..457495f 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -185,7 +185,7 @@ static int pix_norm1_c(uint8_t * pix, int line_size)
             s += sq[pix[6]];
             s += sq[pix[7]];
 #else
-#if LONG_MAX > 2147483647
+#if HAVE_FAST_64BIT
             register uint64_t x=*(uint64_t*)pix;
             s += sq[x&0xff];
             s += sq[(x>>8)&0xff];



More information about the ffmpeg-cvslog mailing list