Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix skipping parameters #44

Merged
merged 6 commits into from
Sep 20, 2023
Merged

Fix skipping parameters #44

merged 6 commits into from
Sep 20, 2023

Conversation

Noarkhh
Copy link
Contributor

@Noarkhh Noarkhh commented Sep 19, 2023

Fix a bug where parameter set in the same access unit as non-idr nalus when option skip_until_keyframe is set to true are being skipped.

@Noarkhh Noarkhh requested a review from varsill as a code owner September 19, 2023 15:37
@@ -559,7 +558,7 @@ defmodule Membrane.H264.Parser do
Membrane.Time.t(),
:au | :nalu,
stream_structure()
) :: Buffer.t()
) :: Buffer.t() | [Buffer.t()]
defp wrap_into_buffer(access_unit, pts, dts, :au, output_stream_structure) do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a NIT suggestion to the code you haven't changed - I don't think there is a need to assign the result to buffer and then immediately return that buffer

@Noarkhh Noarkhh force-pushed the fix-skipping-parameters branch from c150646 to 8c9b28c Compare September 20, 2023 09:57
@Noarkhh Noarkhh requested a review from varsill September 20, 2023 10:01
@Noarkhh Noarkhh merged commit db94f61 into master Sep 20, 2023
@Noarkhh Noarkhh deleted the fix-skipping-parameters branch September 20, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants