diff --git a/rtmp/amf/decode.go b/rtmp/amf/decode.go index 1ad64d1..7a524a0 100644 --- a/rtmp/amf/decode.go +++ b/rtmp/amf/decode.go @@ -106,6 +106,8 @@ func read_next(data *[]byte, byte_idx *uint32) (interface{}, error) { next_obj, err = read_string(data, byte_idx) case 3: next_obj, err = read_object(data, byte_idx) + case 5: + return nil, nil default: return nil, errors.New("Unhandled data type") }