Skip to content

Commit

Permalink
Fix delete duplicate parameter sets
Browse files Browse the repository at this point in the history
  • Loading branch information
gBillal committed Mar 12, 2024
1 parent b8dbcf0 commit 97db95c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/membrane_h264_plugin/h26x_parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ defmodule Membrane.H26x.Parser do
@spec delete_duplicate_parameter_sets(AUSplitter.access_unit(), state()) ::
AUSplitter.access_unit()
defp delete_duplicate_parameter_sets(au, state) do
if state.module.keyframe?(au), do: Enum.uniq(au), else: au
if state.module.keyframe?(au), do: Enum.uniq_by(au, & &1.payload), else: au
end

@spec maybe_add_parameter_sets(AUSplitter.access_unit(), state()) ::
Expand Down

0 comments on commit 97db95c

Please sign in to comment.