F4V Box Parsers

This commit is contained in:
Erik Zandvliet 2011-03-19 14:34:20 +01:00
parent 302765e7c8
commit ea61c0b3a1
2 changed files with 40 additions and 0 deletions

21
ABST_Parser/main.cpp Normal file
View file

@ -0,0 +1,21 @@
#include <stdint.h>
#include <iostream>
#include <string>
#include "../util/MP4/box_includes.h"
int main( ) {
std::string temp;
bool validinp = true;
char thischar;
while(validinp) {
thischar = std::cin.get( );
if(std::cin.good( ) ) {
temp += thischar;
} else {
validinp = false;
}
}
Box * TestBox = new Box((uint8_t*)temp.c_str( ), temp.size( ));
TestBox->Parse( );
delete TestBox;
}