Commit d9027ed9 authored by Michael Smith's avatar Michael Smith

Would give an incorrect warning on vorbis streams with long headers (most

often with long comment headers).

svn path=/trunk/vorbis-tools/; revision=4105
parent 805cab58
......@@ -150,6 +150,8 @@ static void vorbis_process(stream_processor *stream, ogg_page *page )
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 @@ static void vorbis_process(stream_processor *stream, ogg_page *page )
"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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment