hide normal decoder states from logs

This commit is contained in:
aler9 2022-11-03 16:05:46 +01:00
parent b21967260d
commit 4d770cef94
2 changed files with 6 additions and 0 deletions

View File

@ -214,6 +214,9 @@ func (t *streamTrackH264) onData(dat data, hasNonRTSPReaders bool) error {
nalus, pts, err := t.decoder.Decode(pkt)
if err != nil {
if err == rtph264.ErrNonStartingPacketAndNoPrevious || err == rtph264.ErrMorePacketsNeeded {
return nil
}
return err
}

View File

@ -74,6 +74,9 @@ func (t *streamTrackMPEG4Audio) onData(dat data, hasNonRTSPReaders bool) error {
aus, pts, err := t.decoder.Decode(pkt)
if err != nil {
if err == rtpmpeg4audio.ErrMorePacketsNeeded {
return nil
}
return err
}