Added a replacement for xxd, fixed a bug in flv.
This commit is contained in:
parent
2599769b9c
commit
453d3ac885
4 changed files with 55 additions and 10 deletions
|
@ -30,7 +30,7 @@ namespace Converters {
|
|||
bool sending = false;
|
||||
unsigned int counter = 0;
|
||||
|
||||
while ( !feof(stdin)){
|
||||
while ( !feof(stdin) && !FLV::Parse_Error){
|
||||
if (FLV_in.FileLoader(stdin)){
|
||||
pack_out = FLV_in.toJSON(meta_out);
|
||||
if (pack_out.isNull()){
|
||||
|
@ -53,6 +53,10 @@ namespace Converters {
|
|||
output << pack_out.toNetPacked();
|
||||
}
|
||||
}
|
||||
if (FLV::Parse_Error){
|
||||
std::cerr << "Conversion failed: " << FLV::Error_Str << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// if the FLV input is very short, do output it correctly...
|
||||
if ( !sending){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue