Displaying 2 results from an estimated 2 matches for "bufferdata".
Did you mean:
fbufferdata
2007 Apr 12
0
Seek problem 1 - can't find frame number
...this?
This is what the code currently does just after seeking to a new place in the
file:
// Clear the current ogg buffers, find a new page, and fill the buffers again
int result;
ogg_sync_reset(&sync);
while ((result = ogg_sync_pageseek(&sync, &page)) <= 0)
if (result == 0)
bufferData();
// Find the next theora page
while ((result = ogg_sync_pageout(&sync, &page)) == 0)
bufferData();
while (ogg_page_serialno(&page) != tstream.serialno)
if (ogg_sync_pageout(&sync, &page) <= 0)
bufferData();
const ogg_int64_t actualFrame =
theora_granule_frame(&...
2007 Apr 12
1
Seek problem 2 - reinitialization of the decoder
...done a seek in a theora file. At this
point, I have to reinitialize the decoder so the viewing can continue. Again,
I have code that works most of the time, but, well...
Just after the last file position seek, this code is run:
while ((result = ogg_sync_pageout(&sync, &page)) == 0)
bufferData();
while (ogg_page_serialno(&page) != tstream.serialno)
if (ogg_sync_pageout(&sync, &page) <= 0)
// Find a Theora page, not Vorbis.
bufferData();
(Same code as pasted in the the seek problem 1 mail)
Now, I need to get back into the decoding loop. I do this exactly the...