rename Format.String() into Format.Codec() (#307)

This commit is contained in:
Alessandro Ros
2023-06-09 12:42:32 +02:00
committed by GitHub
parent ccf42f49c7
commit 9b4cdbe7ab
36 changed files with 182 additions and 55 deletions

View File

@@ -98,10 +98,16 @@ func (f *MPEG4AudioGeneric) unmarshal(
return nil
}
// Codec implements Format.
func (f *MPEG4AudioGeneric) Codec() string {
return "MPEG-4 Audio"
}
// String implements Format.
//
// Deprecated: replaced by Codec().
func (f *MPEG4AudioGeneric) String() string {
// currently, String() returns the codec name, hence hide the format name.
return "MPEG4-audio"
return f.Codec()
}
// ClockRate implements Format.