[xiph-cvs] cvs commit: vorbis-tools/ogginfo ogginfo2.c
Michael Smith
msmith at xiph.org
Tue Nov 12 02:29:06 PST 2002
msmith 02/11/12 05:29:06
Modified: ogginfo ogginfo2.c
Log:
Would give an incorrect warning on vorbis streams with long headers (most
often with long comment headers).
Revision Changes Path
1.18 +2 -1 vorbis-tools/ogginfo/ogginfo2.c
Index: ogginfo2.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogginfo/ogginfo2.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ogginfo2.c 10 Aug 2002 04:31:11 -0000 1.17
+++ ogginfo2.c 12 Nov 2002 10:29:06 -0000 1.18
@@ -150,6 +150,8 @@
int k;
ogg_stream_pagein(&stream->os, page);
+ if(inf->doneheaders < 3)
+ header = 1;
while(ogg_stream_packetout(&stream->os, &packet) > 0) {
if(inf->doneheaders < 3) {
@@ -158,7 +160,6 @@
"packet - invalid vorbis stream (%d)\n"), stream->num);
continue;
}
- header = 1;
inf->doneheaders++;
if(inf->doneheaders == 3) {
if(ogg_page_granulepos(page) != 0 || ogg_stream_packetpeek(&stream->os, NULL) == 1)
<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