System.err.println("Error reading first page of Ogg bitstream data.");
// goto err
return;
}
Packet header_main = new Packet();
if (state.os.packetout(header_main) != 1) {
System.err.println("Error reading initial header packet.");
// goto err
return;
}
if (state.vi.synthesis_headerin(state.vc, header_main) < 0) {
System.err.println("This Ogg bitstream does not contain Vorbis data.");
// goto err
return;
}
state.mainlen = header_main.bytes;
state.mainbuf = new byte[state.mainlen];
System.arraycopy(header_main.packet_base, header_main.packet,
state.mainbuf, 0, state.mainlen);
int i = 0;
Packet header;
Packet header_comments = new Packet();
Packet header_codebooks = new Packet();
header = header_comments;
while (i < 2) {
while (i < 2) {
int result = state.oy.pageout(og);