From 295a5a04acaa1423b0707fe6ffb599a7693e964b Mon Sep 17 00:00:00 2001 From: bartkrak Date: Wed, 17 Jan 2024 16:52:53 +0100 Subject: [PATCH 1/2] pts integrity warn instead of rise --- lib/membrane_aac_fdk_plugin/encoder.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/membrane_aac_fdk_plugin/encoder.ex b/lib/membrane_aac_fdk_plugin/encoder.ex index 6392407..ba2d48d 100644 --- a/lib/membrane_aac_fdk_plugin/encoder.ex +++ b/lib/membrane_aac_fdk_plugin/encoder.ex @@ -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}} From f4a8fab6505762b901ff5f9bb69bccd5cac00ed3 Mon Sep 17 00:00:00 2001 From: bartkrak Date: Wed, 17 Jan 2024 17:26:26 +0100 Subject: [PATCH 2/2] version bump --- README.md | 2 +- mix.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7b61350..a113b4a 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/mix.exs b/mix.exs index 90da4ce..82cc949 100644 --- a/mix.exs +++ b/mix.exs @@ -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