[xiph-commits] r11732 - icecast/trunk/libshout/src

brendan at svn.xiph.org brendan at svn.xiph.org
Fri Aug 4 14:13:03 PDT 2006


Author: brendan
Date: 2006-08-04 14:13:02 -0700 (Fri, 04 Aug 2006)
New Revision: 11732

Modified:
   icecast/trunk/libshout/src/mp3.c
Log:
Allow all valid MP3 layers, not just layer 3. From Nicholas Humfrey.


Modified: icecast/trunk/libshout/src/mp3.c
===================================================================
--- icecast/trunk/libshout/src/mp3.c	2006-08-04 12:47:31 UTC (rev 11731)
+++ icecast/trunk/libshout/src/mp3.c	2006-08-04 21:13:02 UTC (rev 11732)
@@ -296,8 +296,8 @@
 	if ((mh->syncword & 0x0ffe) != 0x0ffe)
 		return 0;
 
-	/* check for the right layer */
-	if (mh->layer != 2)
+	/* check that layer is valid */
+	if (mh->layer == 0)
 		return 0;
 
 	/* make sure bitrate is sane */



More information about the commits mailing list