move MPEG-4 audio LATM to dedicated format (bluenviron/mediamtx#4403) (#834)

This commit is contained in:
Alessandro Ros
2025-07-20 17:28:52 +02:00
committed by GitHub
parent 1db87f6bf6
commit 800dd9c850
31 changed files with 1620 additions and 1800 deletions

View File

@@ -9,7 +9,6 @@ import (
"os"
"time"
"github.com/asticode/go-astits"
"github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v4/pkg/format"
"github.com/bluenviron/mediacommon/v2/pkg/formats/mpegts"
@@ -138,7 +137,7 @@ func (r *fileStreamer) run() {
err := mr.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