changeset 34830:6e2c850035fd

Use more appropriate types.
author reimar
date Fri, 18 May 2012 17:18:31 +0000
parents 77fa83061e2a
children 1ec773d51090
files libmpdemux/mp3_hdr.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/mp3_hdr.c	Fri May 18 17:16:35 2012 +0000
+++ b/libmpdemux/mp3_hdr.c	Fri May 18 17:18:31 2012 +0000
@@ -47,7 +47,7 @@
     int bitrate;
     int layer;
     static const int mult[3] = { 12000, 144000, 144000 };
-    unsigned long newhead =
+    uint32_t newhead =
       hbuf[0] << 24 |
       hbuf[1] << 16 |
       hbuf[2] <<  8 |
@@ -73,9 +73,9 @@
 	return -1;
     }
 
-    if( newhead & ((long)1<<20) ) {
+    if( newhead & (1<<20) ) {
       // MPEG 1.0 (lsf==0) or MPEG 2.0 (lsf==1)
-      lsf = (newhead & ((long)1<<19)) ? 0x0 : 0x1;
+      lsf = (newhead & (1<<19)) ? 0x0 : 0x1;
       sampling_frequency += (lsf*3);
     } else {
       // MPEG 2.5