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

@@ -13,7 +13,7 @@ func TestTrackMPEG4AudioAttributes(t *testing.T) {
track := &TrackMPEG4Audio{
PayloadType: 96,
Config: &mpeg4audio.Config{
Type: 2,
Type: mpeg4audio.ObjectTypeAACLC,
SampleRate: 48000,
ChannelCount: 2,
},
@@ -29,7 +29,7 @@ func TestTrackMPEG4AudioClone(t *testing.T) {
track := &TrackMPEG4Audio{
PayloadType: 96,
Config: &mpeg4audio.Config{
Type: 2,
Type: mpeg4audio.ObjectTypeAACLC,
SampleRate: 48000,
ChannelCount: 2,
},
@@ -47,7 +47,7 @@ func TestTrackMPEG4AudioMediaDescription(t *testing.T) {
track := &TrackMPEG4Audio{
PayloadType: 96,
Config: &mpeg4audio.Config{
Type: 2,
Type: mpeg4audio.ObjectTypeAACLC,
SampleRate: 48000,
ChannelCount: 2,
},