update list of supported codecs inside error messages (#2058) (#2073)

This commit is contained in:
Alessandro Ros 2023-07-19 00:14:50 +02:00 committed by GitHub
parent 5066ba403c
commit 22b120ef22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -272,7 +272,7 @@ func (m *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{})
if medias == nil { if medias == nil {
return fmt.Errorf( return fmt.Errorf(
"the stream doesn't contain any supported codec, which are currently H264, H265, MPEG4-Audio, Opus") "the stream doesn't contain any supported codec, which are currently H265, H264, Opus, MPEG4-Audio")
} }
var muxerDirectory string var muxerDirectory string

View File

@ -404,7 +404,7 @@ func (c *rtmpConn) runRead(ctx context.Context, u *url.URL) error {
if videoFormat == nil && audioFormat == nil { if videoFormat == nil && audioFormat == nil {
return fmt.Errorf( return fmt.Errorf(
"the stream doesn't contain any supported codec, which are currently H264, MPEG-1/2 Audio, MPEG-4 Audio") "the stream doesn't contain any supported codec, which are currently H264, MPEG-4 Audio, MPEG-1/2 Audio")
} }
defer res.stream.readerRemove(c) defer res.stream.readerRemove(c)

View File

@ -62,7 +62,7 @@ func gatherOutgoingTracks(medias media.Medias) ([]*webRTCOutgoingTrack, error) {
if tracks == nil { if tracks == nil {
return nil, fmt.Errorf( return nil, fmt.Errorf(
"the stream doesn't contain any supported codec, which are currently H264, VP8, VP9, G711, G722, Opus") "the stream doesn't contain any supported codec, which are currently AV1, VP9, VP8, H264, Opus, G722, G711")
} }
return tracks, nil return tracks, nil