[xiph-cvs] cvs commit: ogg/src framing.c

Monty xiphmont at xiph.org
Wed Nov 21 22:22:28 PST 2001



xiphmont    01/11/21 22:22:27

  Modified:    src      framing.c
  Log:
  Fix to ogg_page_packets; it was looking for the wrong marker.

Revision  Changes    Path
1.17      +2 -2      ogg/src/framing.c

Index: framing.c
===================================================================
RCS file: /usr/local/cvsroot/ogg/src/framing.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- framing.c	2001/11/15 13:11:10	1.16
+++ framing.c	2001/11/22 06:22:27	1.17
@@ -12,7 +12,7 @@
 
  function: code raw [Vorbis] packets into framed OggSquish stream and
            decode Ogg streams back into raw packets
- last mod: $Id: framing.c,v 1.16 2001/11/15 13:11:10 msmith Exp $
+ last mod: $Id: framing.c,v 1.17 2001/11/22 06:22:27 xiphmont Exp $
 
  note: The CRC code is directly derived from public domain code by
  Ross Williams (ross at guest.adelaide.edu.au).  See docs/framing.html
@@ -91,7 +91,7 @@
 int ogg_page_packets(ogg_page *og){
   int i,n=og->header[26],count=0;
   for(i=0;i<n;i++)
-    if(og->header[27+i]==0)count++;
+    if(og->header[27+i]<255)count++;
   return(count);
 }
 

--- >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