Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #330 +/- ##
==========================================
+ Coverage 72.11% 77.71% +5.59%
==========================================
Files 79 80 +1
Lines 4756 5080 +324
==========================================
+ Hits 3430 3948 +518
+ Misses 1187 958 -229
- Partials 139 174 +35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
This PR fixes several issues in the FlexFEC-03 encoder by adding validation for empty, out-of-order, and missing media packets, refactors bitmask extraction into helpers, updates the media packet iterator, and adds comprehensive tests including a simple decoder and round-trip recovery tests.
- Validate input ordering and emptiness in
EncodeFec - Refactor bitmask extraction and update header encoding logic
- Improve media packet iterator logic and add iterator tests
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/flexfec/util/media_packet_iterator.go | Use coveredIndices for Next/First iteration |
| pkg/flexfec/util/media_packet_iterator_test.go | Add unit tests for the media packet iterator |
| pkg/flexfec/flexfec_encoder_03.go | Add checks for empty/out-of-order media packets; refactor header/repair payload logic |
| pkg/flexfec/flexfec_encoder_03_test.go | Add edge-case tests for EncodeFec |
| pkg/flexfec/flexfec_coverage.go | Extract mask logic into extractMask1/2/3/3_03 helpers |
| pkg/flexfec/flexfec_coverage_test.go | Add tests for mask extraction |
| pkg/flexfec/flexfec_03_test.go | Add simple decoder and round-trip recovery tests |
5b525b5 to
8c7a8f2
Compare
|
@joeturki, do you want to take a look at the code too? I'm not rushing you in any way, just want to make sure we're on the same page. |
|
The change looks good to me, great stuff, thank you so much. |
|
@joeturki, good catch! I have added the corresonding test |
Description
Fix several issues with FlexFec-03 encoder, add simple decoder and round-trip tests
Reference issue
Fixes #318