summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/KLV.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/KLV.cpp b/src/KLV.cpp
index c29eb8c..2f8fda8 100755
--- a/src/KLV.cpp
+++ b/src/KLV.cpp
@@ -321,7 +321,9 @@ ASDCP::KLVFilePacket::WriteKLToFile(Kumu::FileWriter& Writer, const UL& label, u
ui32_t write_count;
Writer.Write(buffer, kl_length, &write_count);
- assert(write_count == kl_length);
+ if (write_count != kl_length)
+ return RESULT_FAIL;
+
return RESULT_OK;
}