[FFmpeg-cvslog] avcodec/wavpackenc: remove unneeded L suffixes

Michael Niedermayer git at videolan.org
Mon Feb 2 14:52:39 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Feb  1 19:33:23 2015 +0100| [6e95c67330b2707ef967bc0158bde717b50c6902] | committer: Michael Niedermayer

avcodec/wavpackenc: remove unneeded L suffixes

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/wavpackenc.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/wavpackenc.c b/libavcodec/wavpackenc.c
index 63971c6..c174950 100644
--- a/libavcodec/wavpackenc.c
+++ b/libavcodec/wavpackenc.c
@@ -640,9 +640,9 @@ static uint32_t log2sample(uint32_t v, int limit, uint32_t *result)
         dbits = nbits_table[v];
         *result += (dbits << 8) + wp_log2_table[(v << (9 - dbits)) & 0xff];
     } else {
-        if (v < (1L << 16))
+        if (v < (1 << 16))
             dbits = nbits_table[v >> 8] + 8;
-        else if (v < (1L << 24))
+        else if (v < (1 << 24))
             dbits = nbits_table[v >> 16] + 16;
         else
             dbits = nbits_table[v >> 24] + 24;
@@ -1967,8 +1967,8 @@ static int wv_stereo(WavPackEncodeContext *s,
 #define count_bits(av) ( \
  (av) < (1 << 8) ? nbits_table[av] : \
   ( \
-   (av) < (1L << 16) ? nbits_table[(av) >> 8] + 8 : \
-   ((av) < (1L << 24) ? nbits_table[(av) >> 16] + 16 : nbits_table[(av) >> 24] + 24) \
+   (av) < (1 << 16) ? nbits_table[(av) >> 8] + 8 : \
+   ((av) < (1 << 24) ? nbits_table[(av) >> 16] + 16 : nbits_table[(av) >> 24] + 24) \
   ) \
 )
 



More information about the ffmpeg-cvslog mailing list