[SCM] libav/experimental: Correct, portable definition of INT_BIT
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:39:02 UTC 2013
The following commit has been merged in the experimental branch:
commit 28499cc8d8ead4075fe0adfc21cd977004395402
Author: Måns Rullgård <mans at mansr.com>
Date: Sat Feb 21 16:03:30 2009 +0000
Correct, portable definition of INT_BIT
Originally committed as revision 17480 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 7041be2..f5f769e 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -88,11 +88,7 @@
#endif
#ifndef INT_BIT
-# if INT_MAX != 2147483647
-# define INT_BIT 64
-# else
-# define INT_BIT 32
-# endif
+# define INT_BIT (CHAR_BIT * sizeof(int))
#endif
#if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC)
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list