Skip to content

Commit

Permalink
fix fu-a ending
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-hek committed Apr 17, 2024
1 parent 2488def commit 05c3e1d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/rtp_h264/nal_formats/fu.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,14 @@ defmodule Membrane.RTP.H264.FU do

defp do_serialize(data, r, nri, type, preferred_size) do
case data do
<<head::binary-size(preferred_size), rest::binary>> ->
<<head::binary-size(preferred_size), rest::binary>> when byte_size(rest) > 0 ->
payload =
head
|> FU.Header.add_header(0, 0, type)
|> NAL.Header.add_header(r, nri, NAL.Header.encode_type(:fu_a))

[payload] ++ do_serialize(rest, r, nri, type, preferred_size)

<<>> ->
[]

rest ->
[
rest
Expand Down

0 comments on commit 05c3e1d

Please sign in to comment.