Skip to content

Commit

Permalink
remove empty packet handling - it now happens in the jitter buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-hek committed Oct 29, 2024
1 parent 792ade4 commit 894cbd0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/rtp_h264/depayloader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ defmodule Membrane.RTP.H264.Depayloader do
{[stream_format: {:output, stream_format}], state}
end

@impl true
def handle_buffer(:input, %Buffer{payload: ""}, _ctx, state) do
Membrane.Logger.debug("Received empty RTP packet. Ignoring")
{[], state}
end

@impl true
def handle_buffer(:input, buffer, _ctx, state) do
with {:ok, {header, _payload} = nal} <- NAL.Header.parse_unit_header(buffer.payload),
Expand Down

0 comments on commit 894cbd0

Please sign in to comment.