diff --git a/lib/membrane_h264_ffmpeg/parser.ex b/lib/membrane_h264_ffmpeg/parser.ex index 3a7d83e..6aa250c 100644 --- a/lib/membrane_h264_ffmpeg/parser.ex +++ b/lib/membrane_h264_ffmpeg/parser.ex @@ -218,7 +218,7 @@ defmodule Membrane.H264.FFmpeg.Parser do end end - # analize resolution changes and generate appropriate caps before corresponding buffers + # analyze resolution changes and generate appropriate caps before corresponding buffers defp parse_resolution_changes(state, bufs, resolution_changes, acc \\ [], index_offset \\ 0) defp parse_resolution_changes(state, [], [], [], _index_offset) do diff --git a/lib/membrane_h264_ffmpeg/parser/nalu.ex b/lib/membrane_h264_ffmpeg/parser/nalu.ex index 2e09d5a..f312a78 100644 --- a/lib/membrane_h264_ffmpeg/parser/nalu.ex +++ b/lib/membrane_h264_ffmpeg/parser/nalu.ex @@ -31,7 +31,15 @@ defmodule Membrane.H264.FFmpeg.Parser.NALu do end) |> Map.new() - @spec parse(binary, keyword()) :: {list, %{h264: any}, binary} + @typedoc """ + Type representing a single option that can be passed to `parse/2` function call + + - `complete_nalu?` - determines if the last NALu in the binary will be considered complete despite lacking the delimiter marking the end of it. + """ + @type parse_option_t() :: {:complete_nalu?, boolean()} + @type parse_options_t() :: [parse_option_t()] + + @spec parse(binary, parse_options_t()) :: {list, %{h264: any}, binary} def parse(access_unit, options \\ []) do {nalus, au_info} = access_unit