mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
move MPEG-4 audio LATM to dedicated format (bluenviron/mediamtx#4403) (#834)
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/asticode/go-astits"
|
||||
"github.com/bluenviron/gortsplib/v4"
|
||||
"github.com/bluenviron/gortsplib/v4/pkg/description"
|
||||
"github.com/bluenviron/gortsplib/v4/pkg/format"
|
||||
@@ -149,7 +148,7 @@ func main() {
|
||||
err := r.Read()
|
||||
if err != nil {
|
||||
// file has ended
|
||||
if errors.Is(err, astits.ErrNoMorePackets) {
|
||||
if errors.Is(err, io.EOF) {
|
||||
log.Printf("file has ended, rewinding")
|
||||
|
||||
// rewind to start position
|
||||
|
Reference in New Issue
Block a user