Skip to content

Commit f4d7646

Browse files
committed
fix(moq-cli): finalize the avc3 track on stdin EOF
The merge resolution's PublishDecoder::finish() avc3 arm flushed the Annex-B split and decoded the trailing access unit but never called import.finish(), so on stdin EOF the H.264 track was never closed. A downstream subscriber/exporter would hang waiting on the final group instead of seeing end-of-broadcast. The other arms (fmp4/ts/flv) all finalize; origin/main's avc3 TrackStream did split-flush + decode-tail + import.finish(). Restores the missing finish(). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QfH4fCnLu9WHGdAjwW8L3Y
1 parent 17bf0d9 commit f4d7646

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rs/moq-cli/src/publish.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ impl PublishDecoder {
133133
Self::Avc3 { split, import } => {
134134
let tail = split.flush(None)?;
135135
import.decode(tail)?;
136+
import.finish()?;
136137
}
137138
Self::Fmp4(d) => d.finish()?,
138139
Self::Ts(d) => d.finish()?,

0 commit comments

Comments
 (0)