if ( state.os.pagein(og) < 0 ) {
log.error( "Error reading first page of Ogg bitstream data." );
return;
}
final Packet header_main = new Packet();
if ( state.os.packetout(header_main) != 1) {
log.error( "Error reading initial header packet." );
return;
}
if ( state.vi.synthesis_headerin(state.vc, header_main) < 0 ) {
log.error( "This Ogg bitstream does not contain Vorbis data." );
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;
final Packet header_comments = new Packet();
final Packet header_codebooks = new Packet();
header = header_comments;
while ( i < 2 ) {
while( i < 2 ) {
int result = state.oy.pageout( og );