diff options
| author | mikey <mikey@cinecert.com> | 2014-04-29 15:31:21 +0000 |
|---|---|---|
| committer | mikey <> | 2014-04-29 15:31:21 +0000 |
| commit | dd03f3ae2c71df2c4eb89804293e621777a050cf (patch) | |
| tree | 1e26fd0dab7c97aa82ce03f284ae449f0bb87b47 /src/asdcp-info.cpp | |
| parent | 5fae5df9b1cf2990b0383e1b633bdab4476a9669 (diff) | |
added a note about AS-02 support.
Diffstat (limited to 'src/asdcp-info.cpp')
| -rwxr-xr-x | src/asdcp-info.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/asdcp-info.cpp b/src/asdcp-info.cpp index df69d2b..65edd09 100755 --- a/src/asdcp-info.cpp +++ b/src/asdcp-info.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2012, John Hurst +Copyright (c) 2003-2014, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -75,7 +75,7 @@ banner(FILE* stream = stdout) { fprintf(stream, "\n\ %s (asdcplib %s)\n\n\ -Copyright (c) 2003-2012 John Hurst\n\n\ +Copyright (c) 2003-2014 John Hurst\n\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\ Specify the -h (help) option for further information about %s\n\n", @@ -488,14 +488,17 @@ public: } } - // scale bytes to megabits - static const double mega_const = 1.0 / ( 1000000 / 8.0 ); + if ( KM_SUCCESS(result) ) + { + // scale bytes to megabits + static const double mega_const = 1.0 / ( 1000000 / 8.0 ); - // we did not accumulate the first or last frame, so duration -= 2 - double avg_bytes_frame = total_frame_bytes / ( m_Desc.ContainerDuration - 2 ); + // we did not accumulate the first or last frame, so duration -= 2 + double avg_bytes_frame = total_frame_bytes / ( m_Desc.ContainerDuration - 2 ); - m_MaxBitrate = largest_frame * mega_const * m_Desc.EditRate.Quotient(); - m_AvgBitrate = avg_bytes_frame * mega_const * m_Desc.EditRate.Quotient(); + m_MaxBitrate = largest_frame * mega_const * m_Desc.EditRate.Quotient(); + m_AvgBitrate = avg_bytes_frame * mega_const * m_Desc.EditRate.Quotient(); + } } // |
