summaryrefslogtreecommitdiff
path: root/src/framing.c
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2001-11-22 06:22:27 +0000
committerMonty <xiphmont@xiph.org>2001-11-22 06:22:27 +0000
commit12eccde0aed4bd30b0a9313d41ce9ba120127100 (patch)
tree9c65c1cbde2ac5c25b018f92baf15a871d15ba6c /src/framing.c
parent9f933ab739d07c145c5495346f39bb22533b9b99 (diff)
downloadogg-git-12eccde0aed4bd30b0a9313d41ce9ba120127100.tar.gz
Fix to ogg_page_packets; it was looking for the wrong marker.
svn path=/trunk/ogg/; revision=2397
Diffstat (limited to 'src/framing.c')
-rw-r--r--src/framing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/framing.c b/src/framing.c
index eb5e4a3..c136c9a 100644
--- a/src/framing.c
+++ b/src/framing.c
@@ -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@guest.adelaide.edu.au). See docs/framing.html
@@ -91,7 +91,7 @@ more page packet), the return will be:
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);
}