Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/superpowers/plans/2026-08-28-ci-main-green.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@

**Spec:** `docs/TECHNICAL-RISKS.md` and `AGENTS.md`.

The shared HTTP muxer codec-epoch regression must establish the direct AAC
output before injecting the next source codec. FLV and TS emit that output
immediately, while fMP4 requires the DTS=500 video boundary to flush its
fragment; the test therefore waits after that boundary and before G.711
input. This keeps the test independent of goroutine scheduling while still
covering the direct-to-transformed transition.

## Global Constraints

- Use Go 1.26 or newer and the repository's `audiocodec` build tag for the tagged baseline.
Expand Down
5 changes: 5 additions & 0 deletions module/httpstream/muxer_worker_audiocodec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ func TestSharedMuxersSwitchFromDirectAACToTransformedAudio(t *testing.T) {
avframe.MediaTypeVideo, avframe.CodecH264, avframe.FrameTypeInterframe,
500, 500, []byte{0, 0, 0, 2, 0x41, 0x05},
))
// Establish the direct-AAC epoch before introducing an incompatible
// source codec. The live and transformed readers share an unbuffered
// delivery channel, so writing both epochs back-to-back would let
// scheduler timing discard an initial direct frame.
packets = waitForMuxerPayloads(t, format, initData, reader, packets, directAAC)
writeG711MuxerFrames(stream, 1000, 20, 0xff)
stream.WriteFrame(avframe.NewAVFrame(
avframe.MediaTypeVideo, avframe.CodecH264, avframe.FrameTypeInterframe,
Expand Down