support AC-3 tracks in SRT and UDP; support recording AC-3 tracks (#2376)
This commit is contained in:
@@ -72,6 +72,9 @@ func New(
|
||||
case *format.MPEG1Audio:
|
||||
return newMPEG1Audio(udpMaxPayloadSize, forma, generateRTPPackets)
|
||||
|
||||
case *format.AC3:
|
||||
return newAC3(udpMaxPayloadSize, forma, generateRTPPackets)
|
||||
|
||||
default:
|
||||
return newGeneric(udpMaxPayloadSize, forma, generateRTPPackets)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user