/*
-Copyright (c) 2005-2006, John Hurst
+Copyright (c) 2005-2007, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
{
fprintf(stream, "\n\
%s (asdcplib %s)\n\n\
-Copyright (c) 2005-2006 John Hurst\n\
+Copyright (c) 2005-2007 John Hurst\n\
%s is part of the asdcplib DCP tools package.\n\
asdcplib may be copied only under the terms of the license found at\n\
the top of every file in the asdcplib distribution kit.\n\n\
\n\
%s [-h|-help] [-V]\n\
\n\
- -h | -help - Show help\n\
- -r - When KLV data is an OPAtom file, additionally\n\
- display OPAtom headers\n\
- -v - Verbose. Prints informative messages to stderr\n\
- -V - Show version information\n\
+ -h | -help - Show help\n\
+ -r - When KLV data is an MXF OPAtom file, display OPAtom headers\n\
+ -v - Verbose. Prints informative messages to stderr\n\
+ -V - Show version information\n\
\n\
NOTES: o There is no option grouping, all options must be distinct arguments.\n\
o All option arguments must be separated from the option by whitespace.\n\
{
switch ( argv[i][1] )
{
-
case 'h': help_flag = true; break;
case 'r': read_mxf_flag = true; break;
case 'V': version_flag = true; break;
if ( ASDCP_SUCCESS(result) )
result = Header.InitFromFile(Reader);
- Header.Dump(stdout);
+ if ( ASDCP_SUCCESS(result) )
+ Header.Dump(stdout);
- if ( ASDCP_SUCCESS(result) && Header.m_RIP.PairArray.size() > 3 )
+ if ( ASDCP_SUCCESS(result) && Header.m_RIP.PairArray.size() > 2 )
{
MXF::Array<MXF::RIP::Pair>::const_iterator pi = Header.m_RIP.PairArray.begin();
if ( ASDCP_SUCCESS(result) )
Index.Dump(stdout);
}
+
+ if ( ASDCP_SUCCESS(result) )
+ Header.m_RIP.Dump(stdout);
}
else // dump klv
{