diff --git a/rtmp/amf/amf.go b/rtmp/amf/amf.go index 55a656fc..9f410e69 100644 --- a/rtmp/amf/amf.go +++ b/rtmp/amf/amf.go @@ -264,10 +264,6 @@ func EncodeNamedBoolean(buf []byte, key string, val bool) ([]byte, error) { // PropEncode encodes a property. func PropEncode(p *Property, buf []byte) ([]byte, error) { - if p.Type == typeInvalid { - return nil, ErrShortBuffer - } - if p.Type != TypeNull && len(p.Name)+2+1 >= len(buf) { return nil, ErrShortBuffer }