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

@@ -14,11 +14,18 @@ func (f *MJPEG) unmarshal(_ uint8, _ string, _ string, _ string, _ map[string]st
return nil
}
// String implements Format.
func (f *MJPEG) String() string {
// Codec implements Format.
func (f *MJPEG) Codec() string {
return "M-JPEG"
}
// String implements Format.
//
// Deprecated: replaced by Codec().
func (f *MJPEG) String() string {
return f.Codec()
}
// ClockRate implements Format.
func (f *MJPEG) ClockRate() int {
return 90000