Skip to content

Commit

Permalink
Fix unsupported FLAC encoder params
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 22, 2023
1 parent db85533 commit 7626a09
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/mp4/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,15 @@ func (c *Consumer) AddTrack(media *core.Media, _ *core.Codec, track *core.Receiv
codec.Name = core.CodecFLAC

default:
println("ERROR: MP4 unsupported codec: " + track.Codec.Name)
return nil
handler.Handler = nil
}
}

if handler.Handler == nil {
println("ERROR: MP4 unsupported codec: " + track.Codec.String())
return nil
}

handler.HandleRTP(track)
c.senders = append(c.senders, handler)

Expand Down

0 comments on commit 7626a09

Please sign in to comment.