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

Michael Niedermayer michaelni at gmx.at
Sun Feb 1 19:52:23 CET 2015


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 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) \
   ) \
 )
 
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list