mirror of
https://github.com/aler9/gortsplib
synced 2025-10-22 06:39:28 +08:00
fix panic in MPEG4Audio.GetConfig() (#590)
https://github.com/bluenviron/mediamtx/issues/3590
This commit is contained in:
@@ -328,5 +328,8 @@ func (f *MPEG4Audio) GetConfig() *mpeg4audio.Config {
|
||||
if !f.LATM {
|
||||
return f.Config
|
||||
}
|
||||
if f.CPresent {
|
||||
return nil
|
||||
}
|
||||
return f.StreamMuxConfig.Programs[0].Layers[0].AudioSpecificConfig
|
||||
}
|
||||
|
Reference in New Issue
Block a user