From cc0d8f7dab064319e34c1be64888284f27e5d70a Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Wed, 26 Oct 2022 21:53:33 +0200 Subject: [PATCH] hls client: ignore data from unrecognized tracks in MPEG-TS segments --- internal/hls/client_processor_mpegts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/hls/client_processor_mpegts.go b/internal/hls/client_processor_mpegts.go index 9078b35e..728ddef3 100644 --- a/internal/hls/client_processor_mpegts.go +++ b/internal/hls/client_processor_mpegts.go @@ -161,7 +161,7 @@ func (p *clientProcessorMPEGTS) processSegment(ctx context.Context, byts []byte) proc, ok := p.trackProcs[data.PID] if !ok { - return fmt.Errorf("received data from track not present into PMT (%d)", data.PID) + continue } select {