Commit f11722c
fix(packet_pool): align discontinuity detection with FFmpeg behavior (#70)
* Added devcontainer
* fix(packet_pool): align discontinuity detection with FFmpeg behavior
- Added check for PIDNull to skip discontinuity detection (matches FFmpeg's handling)
- Fixed adaptation field discontinuity indicator logic (matches FFmpeg's specification)
- Improved continuity counter validation to match FFmpeg's implementation
- Updated test case to reflect FFmpeg-compliant behavior
BREAKING CHANGE: The function now follows FFmpeg's rules for PIDNull and
adaptation field discontinuity indicators, which were previously handled differently.
Test case in packet_pool_test.go has been updated to match FFmpeg's expected behavior.
* chore(packet_pool_test): add test cases for PIDNull and empty packet list
Adds two new test cases to the hasDiscontinuity function:
- Verifies that a packet with PIDNull does not trigger a discontinuity
- Tests handling of empty packet lists when checking against a packet with continuity counter
* fix: correct trailing newline in Dockerfile and remove tmp/.gitignore due to rebase
---------
Co-authored-by: Quentin Renard <contact-github@asticode.com>1 parent 86767b5 commit f11722c
2 files changed
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
121 | 130 | | |
122 | | - | |
123 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
124 | 146 | | |
125 | 147 | | |
126 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments