diff options
| author | ccd0 <admin@containerchan.org> | 2013-11-30 12:18:35 -0800 |
|---|---|---|
| committer | ccd0 <admin@containerchan.org> | 2013-11-30 12:18:35 -0800 |
| commit | dd3cae6f70815817c6f0ec46fd2712ad61f50b5c (patch) | |
| tree | 6f2cff1e5f0f33434e6cd784d3186e925af9020e /matroska.php | |
| parent | 14ac1b562db32b68d684fefdec7d3e17b83ed745 (diff) | |
improved frame extraction (including alpha)
Diffstat (limited to 'matroska.php')
| -rw-r--r-- | matroska.php | 10 |
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; } |
