projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed references of "Pleroma" to "Akkoma" in email text
[akkoma]
/
lib
/
pleroma
/
helpers
/
qt_fast_start.ex
diff --git
a/lib/pleroma/helpers/qt_fast_start.ex
b/lib/pleroma/helpers/qt_fast_start.ex
index 8cba06e544fc8366ed63d76e9ab289f83aff690f..c4d11b9dd49e1ac10bf3c8742b3c3b3a6fc3d2fb 100644
(file)
--- a/
lib/pleroma/helpers/qt_fast_start.ex
+++ b/
lib/pleroma/helpers/qt_fast_start.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Helpers.QtFastStart do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Helpers.QtFastStart do
@@
-13,7
+13,7
@@
defmodule Pleroma.Helpers.QtFastStart do
# ISO/IEC 14496-12:2015, ISO/IEC 15444-12:2015
# Paracetamol
# ISO/IEC 14496-12:2015, ISO/IEC 15444-12:2015
# Paracetamol
- def fix(
binary = <<0x00, 0x00, 0x00, _, 0x66, 0x74, 0x79, 0x70, _::bits>>
) do
+ def fix(
<<0x00, 0x00, 0x00, _, 0x66, 0x74, 0x79, 0x70, _::bits>> = binary
) do
index = fix(binary, 0, nil, nil, [])
case index do
index = fix(binary, 0, nil, nil, [])
case index do
@@
-59,7
+59,8
@@
defmodule Pleroma.Helpers.QtFastStart do
defp faststart(index) do
{{_ftyp, _, _, _, ftyp}, index} = List.keytake(index, "ftyp", 0)
defp faststart(index) do
{{_ftyp, _, _, _, ftyp}, index} = List.keytake(index, "ftyp", 0)
- # Skip re-writing the free fourcc as it's kind of useless. Why stream useless bytes when you can do without?
+ # Skip re-writing the free fourcc as it's kind of useless.
+ # Why stream useless bytes when you can do without?
{free_size, index} =
case List.keytake(index, "free", 0) do
{{_, _, _, size, _}, index} -> {size, index}
{free_size, index} =
case List.keytake(index, "free", 0) do
{{_, _, _, size, _}, index} -> {size, index}