mirror of
https://github.com/bluenviron/mediamtx
synced 2025-03-02 10:30:38 +00:00
remove warning when decoding VP8 or VP9 (#2159)
avoid printing 'received a non-starting fragment without any previous starting fragment'
This commit is contained in:
parent
ff01e56dfe
commit
1edcc5a670
@ -81,7 +81,7 @@ func (t *formatProcessorVP8) Process(unit Unit, hasNonRTSPReaders bool) error {
|
||||
|
||||
frame, pts, err := t.decoder.Decode(pkt)
|
||||
if err != nil {
|
||||
if err == rtpvp8.ErrMorePacketsNeeded {
|
||||
if err == rtpvp8.ErrNonStartingPacketAndNoPrevious || err == rtpvp8.ErrMorePacketsNeeded {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
|
@ -81,7 +81,7 @@ func (t *formatProcessorVP9) Process(unit Unit, hasNonRTSPReaders bool) error {
|
||||
|
||||
frame, pts, err := t.decoder.Decode(pkt)
|
||||
if err != nil {
|
||||
if err == rtpvp9.ErrMorePacketsNeeded {
|
||||
if err == rtpvp9.ErrNonStartingPacketAndNoPrevious || err == rtpvp9.ErrMorePacketsNeeded {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user