[xiph-cvs] cvs commit: ices/src mp3.c

Brendan brendan at xiph.org
Mon Mar 10 13:40:40 PST 2003



brendan     03/03/10 16:40:40

  Modified:    src      mp3.c
  Log:
  Thinko in header layer check, which could never fail before.

Revision  Changes    Path
1.20      +1 -2      ices/src/mp3.c

Index: mp3.c
===================================================================
RCS file: /cvs/ice/ices/src/mp3.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- mp3.c	10 Mar 2003 21:32:05 -0000	1.19
+++ mp3.c	10 Mar 2003 21:40:40 -0000	1.20
@@ -296,7 +296,6 @@
       return 0;
     default:
       return 0;
-      break;
   }
 
   bitrate_idx = (buf[2] >> 4) & 0xF;
@@ -304,7 +303,7 @@
   header->mode = (buf[3] >> 6) & 0x3;
   header->layer = 4 - ((buf[1] >> 1) & 0x3);
 
-  if ((bitrate_idx == 0xF) || (samplerate_idx == 0x3) || (header->layer == 0))
+  if ((bitrate_idx == 0xF) || (samplerate_idx == 0x3) || (header->layer == 4))
     return 0;
 
   header->error_protection = !(buf[1] & 0x1);

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list