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

Remove redundant pts integrity check. Bump to v0.20.4 #65

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

varsill
Copy link
Contributor

@varsill varsill commented Oct 9, 2024

No description provided.

@varsill varsill requested a review from mat-hek as a code owner October 9, 2024 09:15
@varsill varsill requested a review from FelonEkonom October 9, 2024 09:15
Comment on lines 135 to 144
case encode_buffer(
state.queue <> data,
set_current_pts(state, input_pts),
frame_size_in_bytes(state)
) do
{:ok, [], state} ->
# nothing was encoded
{[], state}

{:ok, encoded_buffers, state} ->
# something was encoded
if check_pts_integrity? do
Util.validate_pts_integrity(encoded_buffers, input_pts)
end
actions = Enum.map(encoded_buffers, &{:buffer, {:output, &1}})

{[buffer: {:output, encoded_buffers}], state}
{actions, state}
end
Copy link
Member

Choose a reason for hiding this comment

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

Leave the first match in case as it was or remove the whole case

@varsill varsill requested a review from FelonEkonom October 10, 2024 14:56
@FelonEkonom FelonEkonom merged commit f542203 into master Oct 14, 2024
3 checks passed
@FelonEkonom FelonEkonom deleted the remove_redundant_warning branch October 14, 2024 10:33
@varsill varsill restored the remove_redundant_warning branch October 14, 2024 10:34
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