rtmp: simplify Audio message structure (#2924)

This commit is contained in:
Alessandro Ros
2024-01-21 16:29:13 +01:00
committed by GitHub
parent 7b9617f2e7
commit f8a56aae91
6 changed files with 32 additions and 34 deletions

View File

@@ -35,7 +35,7 @@ var readWriterCases = []struct {
Codec: CodecMPEG1Audio,
Rate: Rate44100,
Depth: Depth16,
Channels: ChannelsStereo,
IsStereo: true,
Payload: []byte{0x01, 0x02, 0x03, 0x04},
},
[]byte{
@@ -52,7 +52,7 @@ var readWriterCases = []struct {
Codec: CodecMPEG4Audio,
Rate: Rate44100,
Depth: Depth16,
Channels: ChannelsStereo,
IsStereo: true,
AACType: AudioAACTypeAU,
Payload: []byte{0x5A, 0xC0, 0x77, 0x40},
},