Skip to content

Commit 0428f55

Browse files
authored
Fix sample_offset calculation for CMAF muxer (#67)
1 parent babf882 commit 0428f55

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The package can be installed by adding `membrane_mp4_plugin` to your list of dep
1212
```elixir
1313
defp deps do
1414
[
15-
{:membrane_mp4_plugin, "~> 0.22.2"}
15+
{:membrane_mp4_plugin, "~> 0.22.3"}
1616
]
1717
end
1818
```

lib/membrane_mp4/muxer/cmaf.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ defmodule Membrane.MP4.Muxer.CMAF do
400400
timescale
401401
)
402402
|> Ratio.trunc(),
403-
sample_offset: Ratio.floor((sample.pts - sample.dts) / timescale)
403+
sample_offset: Helper.timescalify(sample.pts - sample.dts, timescale)
404404
}
405405
end)
406406

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Membrane.MP4.Plugin.MixProject do
22
use Mix.Project
33

4-
@version "0.22.2"
4+
@version "0.22.3"
55
@github_url "https://github.com/membraneframework/membrane_mp4_plugin"
66

77
def project do

0 commit comments

Comments
 (0)