// OOOggSeekFileReader.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include using namespace std; #ifdef WIN32 int __cdecl _tmain(int argc, _TCHAR* argv[]) #else int main(int argc, char *argv[]) #endif { if (argc < 2) { cout << "Usage : OOOggSeekFileReader "<buildTableFromFile(argv[1]); OggSeekTable::tSeekMap locSeekMap = locSeekTable->getSeekMap(); for (map::iterator i = locSeekMap.begin(); i != locSeekMap.end(); i++) { OggSeekTable::tSeekPair locSeekPair = *i; LOOG_UINT64 locTimePoint = locSeekPair.first; unsigned long locBytePosition = locSeekPair.second; cout << "Seek point: time " << locTimePoint << " at byte offset " << locBytePosition << endl; } delete [] locSeekTable; } return 0; }