mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-13 03:14:11 +08:00
rtmp: add new AMF0 encoder and encoder (#3069)
This improves performance, security and removes a dependency.
This commit is contained in:
@@ -11,8 +11,7 @@ type ExtendedMPEG2TSSequenceStart struct {
|
||||
FourCC FourCC
|
||||
}
|
||||
|
||||
// Unmarshal implements Message.
|
||||
func (m *ExtendedMPEG2TSSequenceStart) Unmarshal(raw *rawmessage.Message) error {
|
||||
func (m *ExtendedMPEG2TSSequenceStart) unmarshal(raw *rawmessage.Message) error {
|
||||
if len(raw.Body) != 5 {
|
||||
return fmt.Errorf("invalid body size")
|
||||
}
|
||||
@@ -22,7 +21,6 @@ func (m *ExtendedMPEG2TSSequenceStart) Unmarshal(raw *rawmessage.Message) error
|
||||
return fmt.Errorf("ExtendedMPEG2TSSequenceStart is not implemented yet")
|
||||
}
|
||||
|
||||
// Marshal implements Message.
|
||||
func (m ExtendedMPEG2TSSequenceStart) Marshal() (*rawmessage.Message, error) {
|
||||
func (m ExtendedMPEG2TSSequenceStart) marshal() (*rawmessage.Message, error) {
|
||||
return nil, fmt.Errorf("TODO")
|
||||
}
|
||||
|
Reference in New Issue
Block a user