ogg support started in lib

This commit is contained in:
Oswald de Bruin 2013-06-06 12:05:34 +02:00 committed by Thulinma
parent 81d7f69d1d
commit f9266aeb76
3 changed files with 48 additions and 2 deletions

View file

@ -0,0 +1,31 @@
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>
#include <string.h>
#include <mist/ogg.h>
#include <mist/config.h>
namespace Analysers{
int analyseOGG(){
std::string oggBuffer;
//Read all of std::cin to mp4Buffer
while (std::cin.good()){
oggBuffer += std::cin.get();
}
oggBuffer.erase(oggBuffer.size() - 1, 1);
OGG::Page oggData;
while (oggData.read(oggBuffer)){
std::cerr << oggData.toPrettyString() << std::endl;
}
return 0;
}
}
int main(int argc, char ** argv){
Util::Config conf = Util::Config(argv[0], PACKAGE_VERSION);
conf.parseArgs(argc, argv);
return Analysers::analyseOGG();
}