Skip to content

Fix H.264 keyframe parameter set ordering for Activity playback - #46

Merged
hugoalves-dev merged 2 commits into
mainfrom
codex/fix-activity-h264-keyframe
Oct 1, 2026
Merged

hugoalves-dev merged 2 commits into
mainfrom
codex/fix-activity-h264-keyframe

Conversation

@hugoalves-dev

Copy link
Copy Markdown
Owner

What changed

The Activity diagnostics showed WebCodecs receiving an access unit with AUD, SPS, PPS, IDR, while the desktop publisher prepended its cached SPS/PPS unconditionally. That produced SPS, PPS, AUD, SPS, PPS, IDR, duplicating parameter sets and placing the access-unit delimiter after them.

The publisher now preserves keyframes that already contain SPS and PPS, and injects only whichever parameter sets are missing. This retains the AUD-first ordering while keeping recovery keyframes self-contained.

Validation

  • dotnet test tests/SonicDesktopRelay.Media.Tests/SonicDesktopRelay.Media.Tests.csproj --no-restore — 134 passed.

@hugoalves-dev
hugoalves-dev merged commit 5f49f4f into main Oct 1, 2026
4 checks passed
@hugoalves-dev
hugoalves-dev deleted the codex/fix-activity-h264-keyframe branch October 1, 2026 20:44
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.

1 participant