search for: videobuffertime

Displaying 1 result from an estimated 1 matches for "videobuffertime".

2007 Apr 12
1
Seek problem 2 - reinitialization of the decoder
...p;sync, &page)) queuePage(); while (isPlaying) { const int result = ogg_stream_packetout(&tstream, &packet); if (result == 0) { // Not enough data... load some more pages! bufferData(); } else if (result > 0) { theora_decode_packetin(&decoder, &packet); int videoBufferTime = theora_granule_time(&decoder, decoder.granulepos); int frameNo = theora_granule_frame(&decoder, decoder.granulepos); if (theora_packet_iskeyframe(&packet) == 1) { ... The problem is that the time and framenumber are not correct - in fact they are offset with something...