[vlc-commits] modules: Don't use gcc specific binary constant prefix

Hugo Beauzée-Luyssen git at videolan.org
Fri Nov 21 18:20:44 CET 2014


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Oct 21 16:25:18 2014 +0200| [d58ed01e08402a771862137ba105aebd3077ff36] | committer: Hugo Beauzée-Luyssen

modules: Don't use gcc specific binary constant prefix

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

 modules/codec/lpcm.c |    4 ++--
 modules/demux/ogg.c  |    2 +-
 modules/demux/ts.c   |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index e3dad87..a1f7825 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -1012,10 +1012,10 @@ static int WidiHeader( unsigned *pi_rate,
 
     switch( ( p_header[3] & 0x38 ) >> 3 )
     {
-    case 0b001:
+    case 0x01: //0b001
         *pi_rate = 44100;
         break;
-    case 0b010:
+    case 0x02: //0b010
         *pi_rate = 48000;
         break;
     default:
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index b32054e..a192f15 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -111,7 +111,7 @@ typedef struct
 #define VORBIS_HEADER_SETUP          3
 #define VORBIS_HEADER_TO_FLAG(i)     (1 << (i - 1))
 #define VORBIS_HEADERS_VALID(p_stream) \
-    ((p_stream->special.vorbis.i_headers_flags & 0b111) == 0b111)
+    ((p_stream->special.vorbis.i_headers_flags & 0x07) == 0x07) // 0b111
 
 /*****************************************************************************
  * Local prototypes
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index bb12ff1..b7de0e2 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -4497,7 +4497,7 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt )
                 break;
             }
         }
-        if ( i_arib_flags == 0b111 )
+        if ( i_arib_flags == 0x07 ) //0b111
             p_sys->arib.e_mode = ARIBMODE_ENABLED;
     }
 



More information about the vlc-commits mailing list