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

Make the depacketizer more consistent #150

Merged
merged 1 commit into from
Aug 23, 2021

Conversation

jech
Copy link
Member

@jech jech commented Aug 22, 2021

With the recent changes to depacketizer, partition tail checking is done in the Depacketizer, while partition tail checking is done in the PartitionHeadChecker. This is inconsistent and error-prone.

In pion/webrtc#1882, I proposed moving both methods into samplebuilder options; this was rejected, arguing that codecs should be more convenient to use. In this PR, we move both methods into Depacketizer, which obsoletes PartitionHeadCheckers.

@codecov
Copy link

codecov bot commented Aug 22, 2021

Codecov Report

❗ No coverage uploaded for pull request base (v1@0f062a1). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 8916ec9 differs from pull request most recent head 806a843. Consider uploading reports for the commit 806a843 to get more accurate results
Impacted file tree graph

@@          Coverage Diff          @@
##             v1     #150   +/-   ##
=====================================
  Coverage      ?   93.02%           
=====================================
  Files         ?       14           
  Lines         ?      932           
  Branches      ?        0           
=====================================
  Hits          ?      867           
  Misses        ?       46           
  Partials      ?       19           
Flag Coverage Δ
go 93.02% <0.00%> (?)
wasm 92.59% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f062a1...806a843. Read the comment docs.

@jech jech force-pushed the consistent-depacketizer branch 2 times, most recently from 8916ec9 to 5f832cd Compare August 22, 2021 21:12
@jech jech changed the base branch from master to v1 August 22, 2021 21:13
@jech jech force-pushed the consistent-depacketizer branch 2 times, most recently from e39d6ac to e7a5991 Compare August 23, 2021 13:07
We used to do partition head checking in PartitionHeadChecker and
partition tail checking in Depacketizer, which is confusing and
error-prone.  Move all checking into the Depacketizer itself.
@Sean-Der Sean-Der merged commit d476748 into pion:v1 Aug 23, 2021
@aler9 aler9 mentioned this pull request Jun 12, 2023
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