fix #1: Handle FLAC in Ogg via Ogg packetizer
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
02810c1bfe
commit
d02aeac334
4
mount.go
4
mount.go
|
@ -89,8 +89,10 @@ func NewStreamMount(source audio.Source, config *StreamConfig) *StreamMount {
|
||||||
if config.Container == "ogg" {
|
if config.Container == "ogg" {
|
||||||
options["ogg"] = true
|
options["ogg"] = true
|
||||||
mimeType = "audio/ogg;codecs=flac"
|
mimeType = "audio/ogg;codecs=flac"
|
||||||
|
packetizerEntry = packetizer.NewOggPacketizer(reader)
|
||||||
|
} else {
|
||||||
|
packetizerEntry = packetizer.NewFLACPacketizer(reader)
|
||||||
}
|
}
|
||||||
packetizerEntry = packetizer.NewFLACPacketizer(reader)
|
|
||||||
case "aac":
|
case "aac":
|
||||||
encoderFormat = aac.NewFormat()
|
encoderFormat = aac.NewFormat()
|
||||||
if bitrate != nil {
|
if bitrate != nil {
|
||||||
|
|
Loading…
Reference in a new issue