summaryrefslogtreecommitdiff
path: root/src/KLV.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2015-11-10 19:40:55 +0000
committerjhurst <>2015-11-10 19:40:55 +0000
commit02915821cfb49cb6851086f5d991cee58328102b (patch)
treec71cb099421c6ecf71a5a5ac469ba5e7fcfc413d /src/KLV.cpp
parentf758bec505d45084d2563f20514ab4a81b27283a (diff)
release
Diffstat (limited to 'src/KLV.cpp')
-rwxr-xr-xsrc/KLV.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/KLV.cpp b/src/KLV.cpp
index f78f3ea..24a90a5 100755
--- a/src/KLV.cpp
+++ b/src/KLV.cpp
@@ -94,19 +94,20 @@ ASDCP::KLVPacket::InitFromBuffer(const byte_t* buf, ui32_t buf_len)
if ( ber_len > ( buf_len - SMPTE_UL_LENGTH ) )
{
- DefaultLogSink().Error("BER encoding length exceeds buffer size\n");
+ DefaultLogSink().Error("BER encoding length exceeds buffer size.\n");
return RESULT_FAIL;
}
if ( ber_len == 0 )
{
- DefaultLogSink().Error("KLV format error, zero BER length not allowed\n");
+ DefaultLogSink().Error("KLV format error, zero BER length not allowed.\n");
return RESULT_FAIL;
}
ui64_t tmp_size;
if ( ! Kumu::read_BER(buf + SMPTE_UL_LENGTH, &tmp_size) )
{
+ DefaultLogSink().Error("KLV format error, BER decode failure.\n");
return RESULT_FAIL;
}