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

skip persumed AUs that don't have any VCL NALus #62

Merged
merged 4 commits into from
May 14, 2024
Merged

Conversation

mat-hek
Copy link
Member

@mat-hek mat-hek commented May 13, 2024

No description provided.

@mat-hek mat-hek requested a review from varsill as a code owner May 13, 2024 14:15
state
| skip_until_keyframe: state.skip_until_keyframe and not has_seen_keyframe?
}
defp first_vcl_nalu(au, state) do
Copy link
Contributor

Choose a reason for hiding this comment

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

for the sake of consistency you can add a typespec

@mat-hek mat-hek requested a review from varsill May 14, 2024 08:52
defp skip_au?(au, keyframe?, state) do
has_seen_keyframe? = keyframe? and Enum.all?(au, &(&1.status == :valid))
@spec forward_au?(AUSplitter.access_unit(), boolean(), state()) :: {boolean(), state()}
defp forward_au?(au, keyframe?, state) do
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't the function that ends with ? return bool? :p

Copy link
Member Author

Choose a reason for hiding this comment

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

renamed

@mat-hek mat-hek merged commit 89ce132 into master May 14, 2024
3 checks passed
@mat-hek mat-hek deleted the skip-invalid-au branch May 14, 2024 09:21
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