indent fix
This commit is contained in:
parent
562386fef7
commit
2ab4204e71
1 changed files with 84 additions and 72 deletions
16
src/info.cpp
16
src/info.cpp
|
@ -4,6 +4,7 @@
|
|||
#include <string>
|
||||
|
||||
#include <mist/json.h>
|
||||
#include <mist/dtsc.h>
|
||||
#include <mist/procs.h>
|
||||
|
||||
namespace Info {
|
||||
|
@ -12,7 +13,9 @@ namespace Info {
|
|||
fprintf( stderr, "Usage: %s <filename>\n", argv[0] );
|
||||
return 1;
|
||||
}
|
||||
JSON::Value fileSpecs;
|
||||
DTSC::File F(argv[1]);
|
||||
JSON::Value fileSpecs = F.getMeta();
|
||||
if( !fileSpecs ) {
|
||||
std::vector<std::string> cmd;
|
||||
cmd.push_back("ffprobe");
|
||||
cmd.push_back(argv[1]);
|
||||
|
@ -90,7 +93,16 @@ namespace Info {
|
|||
}
|
||||
}
|
||||
fclose( outFile );
|
||||
printf( "%s\n", fileSpecs.toPrettyString().c_str() );
|
||||
}
|
||||
if (fileSpecs.isMember("video")){
|
||||
fileSpecs["video"].removeMember("init");
|
||||
}
|
||||
if (fileSpecs.isMember("audio")){
|
||||
fileSpecs["audio"].removeMember("init");
|
||||
}
|
||||
fileSpecs.removeMember("keybpos");
|
||||
fileSpecs.removeMember("keytime");
|
||||
printf( "%s", fileSpecs.toString().c_str() );
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue