summaryrefslogtreecommitdiff
path: root/matroska.php
diff options
context:
space:
mode:
Diffstat (limited to 'matroska.php')
-rw-r--r--matroska.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/matroska.php b/matroska.php
index ff6ce03d..17ff344a 100644
--- a/matroska.php
+++ b/matroska.php
@@ -497,7 +497,7 @@ function readMatroska($fileHandle) {
return $root;
}
-function encodeVarInt($n) {
+function ebmlEncodeVarInt($n) {
$data = '';
$flag = 0x80;
while ($n >= $flag) {
@@ -512,11 +512,11 @@ function encodeVarInt($n) {
return $data;
}
-function encodeElementName($name) {
+function ebmlEncodeElementName($name) {
global $EBML_ELEMENTS;
- return encodeVarInt($EBML_ELEMENTS->id($name));
+ return ebmlEncodeVarInt($EBML_ELEMENTS->id($name));
}
-function encodeElement($name, $content) {
- return encodeElementName($name) . encodeVarInt(strlen($content)) . $content;
+function ebmlEncodeElement($name, $content) {
+ return ebmlEncodeElementName($name) . ebmlEncodeVarInt(strlen($content)) . $content;
}