summaryrefslogtreecommitdiff
path: root/third_party/libwebm/mkvmuxerutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libwebm/mkvmuxerutil.cpp')
-rw-r--r--third_party/libwebm/mkvmuxerutil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/libwebm/mkvmuxerutil.cpp b/third_party/libwebm/mkvmuxerutil.cpp
index 96350e9c5..18060e902 100644
--- a/third_party/libwebm/mkvmuxerutil.cpp
+++ b/third_party/libwebm/mkvmuxerutil.cpp
@@ -292,11 +292,11 @@ bool WriteEbmlElement(IMkvWriter* writer, uint64 type, const char* value) {
if (WriteID(writer, type))
return false;
- const int32 length = strlen(value);
+ const uint64 length = strlen(value);
if (WriteUInt(writer, length))
return false;
- if (writer->Write(value, length))
+ if (writer->Write(value, static_cast<const uint32>(length)))
return false;
return true;