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

Implement skip_until_keyframe? option #35

Merged
merged 9 commits into from
Jul 11, 2023
Merged

Conversation

varsill
Copy link
Contributor

@varsill varsill commented Jun 30, 2023

This PR:

  1. adds skip_until_keyframe? option
  2. move handling of :valid and :error statuses from Membrane.H264.Parser to AUSplitter
  3. Make the AUSplitter warn instead of failing in case of "Improper transition"
  4. Adds some tests checking if the skip_until_keyframe is properly working in different scenarios, with and without parameters sent in stream

@varsill varsill requested a review from mat-hek June 30, 2023 11:02
Enum.reduce(aus, {[], state.au_counter, state.profile}, fn au,
{actions_acc, cnt, profile} ->
{actions, state} =
Enum.reduce(aus, {[], state}, fn au, {actions_acc, state} ->
Copy link
Member

Choose a reason for hiding this comment

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

change to flat_map_reduce

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

end

state = %__MODULE__{
scheme_parser_state: scheme_parser_state,
has_seen_keyframe?: has_seen_keyframe?
Copy link
Member

Choose a reason for hiding this comment

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

seems like this field should be completely removed from state

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Base automatically changed from nalu_aligned_mode to master July 11, 2023 13:52
@varsill varsill requested a review from mat-hek July 11, 2023 14:07
@mat-hek mat-hek merged commit 3124aab into master Jul 11, 2023
@mat-hek mat-hek deleted the skip_until_keyframe branch July 11, 2023 14:11
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