Merge branch 'master' of octo.ddvtech.com:pls
This commit is contained in:
commit
13fb592d21
1 changed files with 5 additions and 6 deletions
|
@ -5,15 +5,14 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "amf.cpp"
|
#include "amf.cpp"
|
||||||
|
|
||||||
int main( int argc, char * argv[] ) {
|
int main() {
|
||||||
if( argc != 2 ) { return 1; }
|
|
||||||
std::string temp;
|
std::string temp;
|
||||||
std::ifstream ifs( argv[1] );
|
while( std::cin.good() ) {
|
||||||
while( ifs.good() ) {
|
temp += std::cin.get();
|
||||||
temp += ifs.get();
|
|
||||||
}
|
}
|
||||||
static AMFType amfdata("empty", (unsigned char)0xFF);
|
static AMFType amfdata("empty", (unsigned char)AMF0_DDV_CONTAINER);
|
||||||
amfdata = parseAMF( (const unsigned char*)temp.c_str(), temp.length()-1 );
|
amfdata = parseAMF( (const unsigned char*)temp.c_str(), temp.length()-1 );
|
||||||
amfdata.Print( );
|
amfdata.Print( );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue