Implement decent seeking in DTSC::File.

This commit is contained in:
Thulinma 2012-08-31 10:39:24 +02:00
parent c6407b3aa1
commit b8a2993c73
2 changed files with 44 additions and 7 deletions

View file

@ -70,8 +70,11 @@ namespace DTSC{
std::string & getHeader();
bool writeHeader(std::string & header, bool force = false);
std::string & getPacket();
bool seek_frame(int frameno);
private:
std::string strbuffer;
std::map<int, long> frames;
int currframe;
FILE * F;
unsigned long headerSize;
char buffer[4];