Skip to content

Commit bba3ccd

Browse files
committed
Accept padding packets in VP8 depayloader
1 parent c2d6e5d commit bba3ccd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ex_webrtc/rtp/vp8_depayloader.ex

Lines changed: 4 additions & 0 deletions
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)