ogg support started in lib
This commit is contained in:
parent
81d7f69d1d
commit
f9266aeb76
3 changed files with 48 additions and 2 deletions
31
src/analysers/ogg_analyser.cpp
Normal file
31
src/analysers/ogg_analyser.cpp
Normal 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();
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue