diff options
| author | jhurst <jhurst@cinecert.com> | 2018-08-06 22:07:03 +0000 |
|---|---|---|
| committer | jhurst <> | 2018-08-06 22:07:03 +0000 |
| commit | f4061a21fffad4fdf8dbb2f193f0f0960b25421c (patch) | |
| tree | c66e09ce3c57e263690bc0c0f37d37e9a3aa75f8 /src/as-02-info.cpp | |
| parent | 38954bfe8dd72a817fb070c58327cd111b9bd282 (diff) | |
o Added support for SMPTE RDD 47 "ISXD Track File"
o Added generic support for SMPTE RP 2057 "Text-Based Metadata Carriage in MXF"
o Re-factored AS-02 frame-wrap index write to use a common implementation
o Re-factored support for SMPTE ST 410 to use a common implementation (affects
o AS-DCP and AS-02 timed-text MXF (SMPTE 429-5)
o Patched several ambiguous integer casts.
o Added new essence type identifiers ESS_AS02_ISXD and ESS_AS02_ACES
o Fixed a bug wherein the Generic Container data tarck clip was instead being
o written as a DM track
o Fixed UL values DCDataDescriptor and ContainerConstraintSubDescriptor to have
o a byte 6 value of 0x53 (Tag Set) instead of 0x07 (coding sentinel)
o Added UL values 492 - 511 to the dictionary
o Added ApplicationSchemes and ConformsToSpecifications to the Preface set
o Added default initializer to MXF::LineMapPair
o Added sets DescriptiveFramework, DescriptiveObject, TextBasedDMFramework,
o TextBasedObject, GenericStreamTextBasedSet and ISXDDataEssenceDescriptor
o Added ISXD support and options '-G', '-u' to as-02-wrap
o Added ISXD support and option '-g' to as-02-unwrap
Diffstat (limited to 'src/as-02-info.cpp')
| -rw-r--r-- | src/as-02-info.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/as-02-info.cpp b/src/as-02-info.cpp index 19109e8..df108f6 100644 --- a/src/as-02-info.cpp +++ b/src/as-02-info.cpp @@ -347,7 +347,7 @@ class MyPictureDescriptor : public JP2K::PictureDescriptor fprintf(stream, " Precincts: %u\n", precinct_set_size); fprintf(stream, "precinct dimensions:\n"); - for ( int i = 0; i < precinct_set_size && i < JP2K::MaxPrecincts; i++ ) + for ( unsigned int i = 0; i < precinct_set_size && i < JP2K::MaxPrecincts; i++ ) fprintf(stream, " %d: %d x %d\n", i + 1, s_exp_lookup[coding_style_default.SPcod.PrecinctSize[i]&0x0f], s_exp_lookup[(coding_style_default.SPcod.PrecinctSize[i]>>4)&0x0f] @@ -539,7 +539,7 @@ public: ( m_WriterInfo.LabelSetType == LS_MXF_SMPTE ? "SMPTE 2067-5" : "Unknown" ), type_string, (m_Desc.ContainerDuration != 0 ? m_Desc.ContainerDuration : m_Reader.AS02IndexReader().GetDuration()), - (m_Desc.ContainerDuration == 1 ? "":"s")); + (m_Desc.ContainerDuration == (ui64_t)1 ? "":"s")); if ( Options.showheader_flag ) { @@ -681,7 +681,7 @@ public: total_frame_bytes += this_frame_size; if ( this_frame_size > largest_frame ) - largest_frame = this_frame_size; + largest_frame = (ui32_t)this_frame_size; } last_stream_offset = entry.StreamOffset; @@ -694,7 +694,7 @@ public: static const double mega_const = 1.0 / ( 1000000 / 8.0 ); // we did not accumulate the last, so duration -= 1 - double avg_bytes_frame = total_frame_bytes / ( duration - 1 ); + double avg_bytes_frame = (double)(total_frame_bytes / ( duration - 1 )); m_MaxBitrate = largest_frame * mega_const * m_Desc.EditRate.Quotient(); m_AvgBitrate = avg_bytes_frame * mega_const * m_Desc.EditRate.Quotient(); @@ -811,7 +811,6 @@ int main(int argc, const char** argv) { Result_t result = RESULT_OK; - char str_buf[64]; CommandOptions Options(argc, argv); if ( Options.version_flag ) |
