Commit fdb53adc authored by Ralph Giles's avatar Ralph Giles
Browse files

Use packetpeek() to check that the third header finishes as page as per spec.

Replaces the incorrect check with page_continued() removed in the previous commit.

svn path=/trunk/vorbis-tools/; revision=3639
parent 4170ef92
......@@ -160,7 +160,7 @@ static void vorbis_process(stream_processor *stream, ogg_page *page )
header = 1;
inf->doneheaders++;
if(inf->doneheaders == 3) {
if(ogg_page_granulepos(page) != 0)
if(ogg_page_granulepos(page) != 0 || ogg_stream_packetpeek(&stream->os, NULL) == 1)
warn(_("Warning: Vorbis stream %d does not have headers "
"correctly framed. Terminal header page contains "
"additional packets or has non-zero granulepos\n"),
......
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