diff --git a/AMF_Creator/output.bin b/AMF_Creator/output.bin index 0c650372..869c1173 100644 Binary files a/AMF_Creator/output.bin and b/AMF_Creator/output.bin differ diff --git a/AMF_Tester/main.cpp b/AMF_Tester/main.cpp index 342e658c..6b271c3e 100644 --- a/AMF_Tester/main.cpp +++ b/AMF_Tester/main.cpp @@ -5,15 +5,14 @@ #include <string> #include "amf.cpp" -int main( int argc, char * argv[] ) { - if( argc != 2 ) { return 1; } +int main() { std::string temp; - std::ifstream ifs( argv[1] ); - while( ifs.good() ) { - temp += ifs.get(); + while( std::cin.good() ) { + temp += std::cin.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.Print( ); return 0; } +