diff options
| author | msheby <msheby@cinecert.com> | 2012-04-01 21:24:45 +0000 |
|---|---|---|
| committer | msheby <> | 2012-04-01 21:24:45 +0000 |
| commit | 02576f10e9fbda710a7db35757950786a776a71d (patch) | |
| tree | 6b959cd439157f16a5179f9204451d700c8c8229 /src/MXF.cpp | |
| parent | aac3cfda50b82f7b763b69b9acfcc4d63c81d98b (diff) | |
eliminate output filename warnings
Diffstat (limited to 'src/MXF.cpp')
| -rwxr-xr-x | src/MXF.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/MXF.cpp b/src/MXF.cpp index 6bc3fcb..7f042ee 100755 --- a/src/MXF.cpp +++ b/src/MXF.cpp @@ -57,7 +57,10 @@ ASDCP::MXF::SeekToRIP(const Kumu::FileReader& Reader) if ( ASDCP_SUCCESS(result) && end_pos < (SMPTE_UL_LENGTH+MXF_BER_LENGTH) ) - result = RESULT_FAIL; // File is smaller than an empty packet! + { + DefaultLogSink().Error("File is smaller than an KLV empty packet.\n"); + result = RESULT_FAIL; + } if ( ASDCP_SUCCESS(result) ) result = Reader.Seek(end_pos - 4); @@ -72,7 +75,10 @@ ASDCP::MXF::SeekToRIP(const Kumu::FileReader& Reader) result = Reader.Read(intbuf, MXF_BER_LENGTH, &read_count); if ( ASDCP_SUCCESS(result) && read_count != 4 ) - result = RESULT_FAIL; + { + DefaultLogSink().Error("RIP contains fewer than four bytes.\n"); + result = RESULT_FAIL; + } } if ( ASDCP_SUCCESS(result) ) @@ -80,7 +86,10 @@ ASDCP::MXF::SeekToRIP(const Kumu::FileReader& Reader) rip_size = KM_i32_BE(Kumu::cp2i<ui32_t>(intbuf)); if ( rip_size > end_pos ) // RIP can't be bigger than the file - return RESULT_FAIL; + { + DefaultLogSink().Error("RIP size impossibly large.\n"); + return RESULT_FAIL; + } } // reposition to start of RIP |
