Skip to content

Commit

Permalink
pts integrity warn instead of rise
Browse files Browse the repository at this point in the history
  • Loading branch information
bartkrak committed Jan 17, 2024
1 parent 5b51c7b commit 295a5a0
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 295a5a0

Please sign in to comment.