search for: actualfram

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

Did you mean: actual_ram
2007 Apr 12
0
Seek problem 1 - can't find frame number
...<= 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(&decoder, ogg_page_granulepos(&page)); With some files, this code works fine. But with others, the framenumbers I get at the end have absolutely no resemblance to actual framenumbers. Sometimes they are even an order of magnitude off. Do I have to reinitialize...