Skip to content

Commit

Permalink
Merge pull request #4 from nickdichev-firework/update-elixir-1.16
Browse files Browse the repository at this point in the history
Update slice syntax to fix elixir 1.16 warning
  • Loading branch information
dmorn authored May 31, 2024
2 parents 3e3b160 + da24539 commit 9ee9ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mpeg/ts/demuxer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ defmodule MPEG.TS.Demuxer do
else
Logger.debug("Random access indicator found", domain: __MODULE__)

packets = Enum.slice(packets, Range.new(rai, -1))
packets = Enum.slice(packets, Range.new(rai, -1, 1))
push_es_packets(%{state | waiting_random_access_indicator: false}, packets)
end
end
Expand Down

0 comments on commit 9ee9ffb

Please sign in to comment.