diff --git a/lib/membrane_http_adaptive_stream/sink_bin.ex b/lib/membrane_http_adaptive_stream/sink_bin.ex index 67ce873..262f732 100644 --- a/lib/membrane_http_adaptive_stream/sink_bin.ex +++ b/lib/membrane_http_adaptive_stream/sink_bin.ex @@ -354,11 +354,13 @@ defmodule Membrane.HTTPAdaptiveStream.SinkBin do defp get_parser(:H264, state), do: %H264.Parser{ - output_stream_structure: if(state.mp4_parameters_in_band?, do: :avc3, else: :avc1) + output_stream_structure: if(state.mp4_parameters_in_band?, do: :avc3, else: :avc1), + repeat_parameter_sets: true } defp get_parser(:H265, state), do: %H265.Parser{ - output_stream_structure: if(state.mp4_parameters_in_band?, do: :hev1, else: :hvc1) + output_stream_structure: if(state.mp4_parameters_in_band?, do: :hev1, else: :hvc1), + repeat_parameter_sets: true } end