Skip to content

Commit 0aced53

Browse files
authored
Accept padding packets in VP8 depayloader (#106)
1 parent c2d6e5d commit 0aced53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ex_webrtc/rtp/vp8_depayloader.ex

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ defmodule ExWebRTC.RTP.VP8Depayloader do
2121
end
2222

2323
@spec write(t(), ExRTP.Packet.t()) :: {:ok, t()} | {:ok, binary(), t()}
24+
def write(depayloader, packet)
25+
26+
def write(depayloader, %ExRTP.Packet{payload: <<>>, padding: true}), do: {:ok, depayloader}
27+
2428
def write(depayloader, packet) do
2529
with {:ok, vp8_payload} <- VP8Payload.parse(packet.payload) do
2630
depayloader =

0 commit comments

Comments
 (0)