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}}