use named constant for MPEG4-audio object type

This commit is contained in:
aler9
2022-11-14 16:50:21 +01:00
parent 8fc6bf35ae
commit ae0df8d4c9
6 changed files with 14 additions and 14 deletions

View File

@@ -38,7 +38,7 @@ func main() {
track := &gortsplib.TrackMPEG4Audio{
PayloadType: 96,
Config: &mpeg4audio.Config{
Type: 2,
Type: mpeg4audio.ObjectTypeAACLC,
SampleRate: 48000,
ChannelCount: 2,
},