Skip to content

Commit

Permalink
Merge pull request #52 from membraneframework/pts-integrity-fix
Browse files Browse the repository at this point in the history
Encoder warn if PTS values are overlapping, instead of rising error
  • Loading branch information
bartkrak authored Jan 17, 2024
2 parents 5b51c7b + f4a8fab commit 42bcb80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The package can be installed by adding `membrane_aac_fdk_plugin` to your list of
```elixir
def deps do
[
{:membrane_aac_fdk_plugin, "~> 0.18.3"}
{:membrane_aac_fdk_plugin, "~> 0.18.4"}
]
end
```
Expand Down
4 changes: 2 additions & 2 deletions lib/membrane_aac_fdk_plugin/encoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ defmodule Membrane.AAC.FDK.Encoder do
<<_handled::binary-size(bytes_used), rest::binary>> = to_encode

if check_pts_integrity? and length(encoded_buffers) >= 2 and
Enum.at(encoded_buffers, 1).pts != input_pts do
raise "PTS values are not continuous"
Enum.at(encoded_buffers, 1).pts > input_pts do
Membrane.Logger.warning("PTS values are overlapping")
end

{[buffer: {:output, encoded_buffers}], %{state | queue: rest}}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Membrane.AAC.FDK.Plugin.MixProject do
use Mix.Project

@version "0.18.3"
@version "0.18.4"
@github_url "https://github.com/membraneframework/membrane_aac_fdk_plugin"

def project do
Expand Down

0 comments on commit 42bcb80

Please sign in to comment.